コード例 #1
0
        public AsyncServerSocket(IPEndPoint listenEndpoint, IChannelInitialiser channelInitialiser)
        {
            this._listenEndpoint     = listenEndpoint;
            this._channelInitialiser = channelInitialiser;

            this._bufferAllocator = new PooledBufferAllocator(MaxSimultaneousConnections * 2, ChannelBufferSize);

            this._acceptArgsPool = new SocketAsyncEventArgsPool(MaxSimultaneousAcceptOperations, CreateAcceptEventArgs);
            this._ioArgsPool     = new SocketAsyncEventArgsPool(MaxSimultaneousConnections, CreateIoEventArgs);
        }
コード例 #2
0
 public void Configure(IChannelInitialiser channelInitialiser)
 {
     this._channelInitialiser = channelInitialiser;
 }