Example #1
0
 public TCPClientEx(string hostName, int port)
 {
     _client = new TcpClient(hostName, port);
     _hostInfo = _client.Client.RemoteEndPoint.ToString();
     Id = _client.GetId();
 }
Example #2
0
 public TCPClientEx(TcpClient client)
 {
     _client = client;
     _hostInfo = _client.Client.RemoteEndPoint.ToString();
     Id = _client.GetId();
 }