Sending and receiving data over a network using TcpClient
First, I recommend that you use WCF, .NET Remoting, or some other higher-level communication abstraction. The learning curve for “simple” sockets is nearly as high as WCF, because there are so many non-obvious pitfalls when using TCP/IP directly. If you decide to continue down the TCP/IP path, then review my .NET TCP/IP FAQ, particularly the … Read more