예제 #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;
 }
예제 #2
0
 /// <summary>
 /// ctor for TcpClientEventArgs
 /// </summary>
 protected TcpClientEventArgs(TcpServer host, TcpClient client)
 {
     Host = host;
     Client = client;
 }
예제 #3
0
 /// <summary>
 /// ctor for TcpClientEventArgs
 /// </summary>
 protected TcpClientEventArgs(TcpServer host, TcpClient client)
 {
     Host   = host;
     Client = client;
 }