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); }
public void Configure(IChannelInitialiser channelInitialiser) { this._channelInitialiser = channelInitialiser; }