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