Пример #1
0
 public void Connect(string hostname, int port)
 {
     client = new TcpClient(hostname, port);
     stream = client.GetStream();
     packet = new PacketHelper(stream);
 }
Пример #2
0
 public TcpClientSession(TcpClient client)
 {
     this.client = client;
     this.stream = client.GetStream();
     this.packet = new PacketHelper(stream);
 }