private TcpHostConnection(TcpHost tcpHost, NetworkStream stream, IRequestHandler engine):base(stream) { if (tcpHost == null) throw new ArgumentNullException("tcpHost"); if (stream == null) throw new ArgumentNullException("stream"); if (engine == null) throw new ArgumentNullException("engine"); _tcpHost = tcpHost; _stream = stream; _engine = engine; }
private TcpHostConnection(TcpHost tcpHost, NetworkStream stream, IRequestHandler engine) : base(stream) { if (tcpHost == null) { throw new ArgumentNullException("tcpHost"); } if (stream == null) { throw new ArgumentNullException("stream"); } if (engine == null) { throw new ArgumentNullException("engine"); } _tcpHost = tcpHost; _stream = stream; _engine = engine; }
public static void HandleNew(TcpHost tcpHost, TcpClient cl, IRequestHandler engine) { new TcpHostConnection(tcpHost, cl.GetStream(), engine).StartReading(); }
public static void HandleNew(TcpHost tcpHost, TcpClient cl, IRequestHandler engine) { new TcpHostConnection (tcpHost, cl.GetStream (), engine).StartReading (); }