How can i work with tcp connection without Winsock or another external binary?
+4
A:
Since you're using C#, you should just use the System.Net and System.Net.Sockets namespaces.
These isolate you from working with Winsock directly (although they are based on Windows Sockets internally, at least on Windows).
For example, the TcpClient class provides a TCP Client connection, and has been supported in C# in every version of the .NET Framework. There is absolutely no reason not to use these classes if you want to work with sockets.
Reed Copsey
2010-03-26 20:08:27
A:
I am not sure what extra control over TCP you need. If you find it hard to troubleshoot TCP connection issues, you can always utilize System.Net tracing and Microsoft Network Monitor.
System.Net is by far the best library you can use.
Lex Li
2010-03-27 02:46:37