|
-
Oct 6th, 2008, 02:39 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Socket Programming Help
Hii all,
After a long time I came back with jumping to VB.net from VB6. I want to make the project in VB.net or in C#.net which can communicate in LAN to chat with others. I have already done this thing in VB6 using Winsock control but here I dont know which control or which method I have to use.
Can any one show me the path from where I can start the journey to socket programming.
Thank you my helper.
-
Oct 6th, 2008, 07:26 AM
#2
Re: Socket Programming Help
did you try searching here? there are a lot of threads that might show you what you want.
-
Oct 6th, 2008, 08:13 AM
#3
Re: Socket Programming Help
First you have to decide whether you are using TCP with connections, or UDP which is connectionless. UDP is somewhat easier, but it gets kind of tricky if the message size gets too big, which seems likely for sending text messages between people.
If connections are ok, then search this forum on TCPClient or TCPListener, as those are the two classes you will be using. For UDP, you can look for threads started by me with UDP in them in the networking section where I posted a working class that I am using in a robot.
My usual boring signature: Nothing
 
-
Oct 6th, 2008, 08:51 AM
#4
Thread Starter
Addicted Member
Re: Socket Programming Help
Oh thanks shaggy.... I am tired after trying socket coding for whole day....
Let's try with TCPClient and TCPListener....
Can you give me come sample code for TCPClient
-
Oct 6th, 2008, 08:52 AM
#5
Thread Starter
Addicted Member
Re: Socket Programming Help
As you told I could transfer only 10 kb to 125 kb approximately...
-
Oct 6th, 2008, 09:16 AM
#6
Re: Socket Programming Help
You've created an identical thread in the C# forum, where I've pointed you to the link in my signature.
You should try to avoid creating duplicate threads
-
Oct 6th, 2008, 09:25 AM
#7
Re: Socket Programming Help
ishrar - are you trying to do one write that is 10 - 125 KB?
-
Oct 6th, 2008, 05:12 PM
#8
Re: Socket Programming Help
That size rules out any reasonable UDP, and Atheist does seem to have the most complete TCP examples I have seen, so I'll leave at this point.
My usual boring signature: Nothing
 
-
Oct 7th, 2008, 09:02 AM
#9
Thread Starter
Addicted Member
Re: Socket Programming Help
Using tcpclient and tcplistener I got solution to my problem...
Now application is ready.
Thank you all....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|