示例#1
0
 public Connection(TcpClient tcpClient)
 {
     UserData   = new UserData();
     TcpClient  = tcpClient;
     UserStream = tcpClient.GetStream();
 }
示例#2
0
 public Connection(UserData userData, TcpClient tcpClient)
 {
     UserData   = userData;
     TcpClient  = tcpClient;
     UserStream = tcpClient.GetStream();
 }
示例#3
0
 public Connection()
 {
     UserData   = new UserData();
     TcpClient  = null;
     UserStream = null;
 }