public HmuxChannelFactory(String address, int port) { _address = address; _port = port; _log = Logger.GetLogger(); _idleProbe = new ActiveProbe(); _requestTimeProbe = new ActiveTimeProbe(); _connectionProbe = new ActiveProbe(); }
public HmuxChannel(Socket socket, HmuxChannelFactory pool) { _socket = socket; _stream = new BufferedStream(new NetworkStream(_socket)); _pool = pool; _traceId = _socket.Handle.ToInt32().ToString(); _log = Logger.GetLogger(); _connProbe = pool.GetConnectionProbe(); _requestTimeProbe = pool.GetRequestTimeProbe(); _idleProbe = pool.GetIdleProbe(); }