Esempio n. 1
0
 public NetworkChannel(Socket socket, ChannelsNotifier channelsNotifier)
 {
     socketWrapper         = new SocketWrapper(socket);
     handShaker            = new HandShaker(socketWrapper);
     this.channelsNotifier = channelsNotifier;
     channelsNotifier.AddChannel(this);
 }
Esempio n. 2
0
 public Client(TcpClient client, int uid)
 {
     this.client = client;
     this.uid    = uid;
     handShaker  = new HandShaker(client.GetStream(), bufSize);
 }