Let me apologise in advance for the length of this topic, but I'm struggling with this problem for a long time now.
I'm currently developing some components based upon the Socket class which is located in the System.Net.Sockets namespace of the .NET framework. I'm aware that there are more "ready" components available in that namespace, but that's beside the question
here. I'm more interested in the problem i'm encountering and why this is happening in the first place. Perhaps I'm missing something, or I misunderstand the documentation of the components.
Here is the code for both the server & client component. They inherit from an interface that defines the public functions, so if you remove that from the class definition this code should compile on Visual Studio 2010 for those who wish to perform some
public class TCPClient : IClient
public TCPClient(string address, int port)
Address = address;
Port = port;
public TCPClient(Socket socket)
m_socket = socket;
Address = (socket.RemoteEndPoint
View Complete Post