public NettyRequestListener(HttpProvider_HttpRequestListener listener, NettyFullAddress target, IChannel ch, HttpPoolManager channelPool)
 {
     this.wrapped     = listener;
     this.target      = target;
     this.ch          = ch;
     this.channelPool = channelPool;
 }
        public NettyHttpProvider(SessionThread thread)
        {
            this.sessionThread = thread;

            this.httpPoolManager = SingletonFactory.instance.HttpPool;

            this.objectId = Interlocked.Increment(ref objectIdCounter);
        }
 private SingletonFactory()
 {
     httpPool = new HttpPoolManager();
     try
     {
         wsPool = new WebSocketPoolManager(httpPool);
     }
     catch (Exception e)
     {
         log.Debug("Error: " + e.Message + ", " + e.StackTrace);
     }
 }
Beispiel #4
0
 internal HttpChannelPoolMap(HttpPoolManager outerInstance, Bootstrap cb)
 {
     this.outerInstance = outerInstance;
     this.cb            = cb;
 }
Beispiel #5
0
 public ChannelPoolMapWrapper(HttpPoolManager outerInstance)
 {
     this.outerInstance = outerInstance;
 }
 // TEST ONLY
 public NettyHttpProvider(SessionThread thread, HttpPoolManager channelPool)
 {
     this.sessionThread   = thread;
     this.httpPoolManager = channelPool;
     this.objectId        = Interlocked.Increment(ref objectIdCounter);
 }