TCP Client Server programming using TCP with C# .NET2
[20 mn of reading - published 6/3/2006 6:29:38 PM - Target : Confirmé]
|
   
|
Author
Conclusion
This article has described the principle of programming a client and a server application using the TCP protocol.
Using a Thread per connection allows us to accept hundreds of connections simultaneously, but could be unstable over.
If you have to accept a higher connection amount, you should multiplex connection classes on a small amount of threads or use asynchronous connection and treatment methods.
Sources
Microsoft Visual Studio 2005 documentation (Oct. 2005)
Code of the client and server software used to illustrate this article can be downloaded at this location: http://www.gwada.biz/messenger_full_src.zip
Download the latest version of the source code and the executable at http://www.gwada.biz/messenger
|