Exemplo n.º 1
0
 public TcpClientConnection(TcpServer host, TcpClient client)
     : base(host, client)
 {
     Stream = client.GetStream();
     ErrorCount = 0;
     ReadOffset = 0;
     ReadBuffer = new byte[1024];
     WriteOffset = 0;
     WriteBuffer = new byte[0];
     AsyncRead = null;
 }
Exemplo n.º 2
0
 /// <summary>
 /// ctor for TcpClientEventArgs
 /// </summary>
 protected TcpClientEventArgs(TcpServer host, TcpClient client)
 {
     Host = host;
     Client = client;
 }
Exemplo n.º 3
0
 /// <summary>
 /// ctor for TcpClientEventArgs
 /// </summary>
 protected TcpClientEventArgs(TcpServer host, TcpClient client)
 {
     Host   = host;
     Client = client;
 }