public Connection(TcpClient tcpClient) { UserData = new UserData(); TcpClient = tcpClient; UserStream = tcpClient.GetStream(); }
public Connection(UserData userData, TcpClient tcpClient) { UserData = userData; TcpClient = tcpClient; UserStream = tcpClient.GetStream(); }
public Connection() { UserData = new UserData(); TcpClient = null; UserStream = null; }