[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.
Re: Socket Programming Help
did you try searching here? there are a lot of threads that might show you what you want.
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.
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
Re: Socket Programming Help
As you told I could transfer only 10 kb to 125 kb approximately...
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:)
Re: Socket Programming Help
ishrar - are you trying to do one write that is 10 - 125 KB?
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.
Re: Socket Programming Help
Using tcpclient and tcplistener I got solution to my problem...
Now application is ready.
Thank you all....