public ListenerContext(ListenerContext listenerContext)
     : base(listenerContext)
 {
     ServerAddress     = listenerContext.ServerAddress;
     Thread            = listenerContext.Thread;
     Memory            = listenerContext.Memory;
     ConnectionManager = listenerContext.ConnectionManager;
     WriteReqPool      = listenerContext.WriteReqPool;
     Log = listenerContext.Log;
 }
        public Connection(ListenerContext context, UvStreamHandle socket) : base(context)
        {
            _socket           = socket;
            socket.Connection = this;
            ConnectionControl = this;

            ConnectionId = GenerateConnectionId(Interlocked.Increment(ref _lastConnectionId));

            _rawSocketInput  = new SocketInput(Memory, ThreadPool);
            _rawSocketOutput = new SocketOutput(Thread, _socket, Memory, this, ConnectionId, Log, ThreadPool, WriteReqPool);
        }
Beispiel #3
0
 public ConnectionContext(ListenerContext context) : base(context)
 {
 }