コード例 #1
0
        public HmuxChannelFactory(String address, int port)
        {
            _address = address;
              _port = port;

              _log = Logger.GetLogger();

              _idleProbe = new ActiveProbe();
              _requestTimeProbe = new ActiveTimeProbe();
              _connectionProbe = new ActiveProbe();
        }
コード例 #2
0
        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();
        }