internal TcpSocketSaeaFullBased(
     TcpSocketConfigurationBase configuration,
     SaeaAwaiterPool handlerSaeaPool,
     SessionPool sessionPool,
     NotifyEventHandler <TcpSessionNotify, TcpSocketSaeaSession> notifyEventHandler,
     TcpSocketSaeaEngineBased agent)
     : base(notifyEventHandler, configuration, handlerSaeaPool, sessionPool, agent)
     => CompletedBuffer = new byte[configuration.ReceiveBufferSize];
Пример #2
0
 internal TcpSocketSaeaPackBased(
     TcpSocketConfigurationBase configuration,
     SaeaAwaiterPool handlerSaeaPool,
     SessionPool sessionPool,
     NotifyEventHandler <TcpSocketCompletionNotify, TcpSocketSaeaSession> notifyEventHandler,
     TcpSocketSaeaEngineBased agent)
     : base(notifyEventHandler, configuration, handlerSaeaPool, sessionPool, agent)
 {
     _isCompress = configuration.CompressTransferFromPacket;
 }
 internal TcpSocketSaeaSession(
     NotifyEventHandler <TcpSocketCompletionNotify, TcpSocketSaeaSession> notifyEventHandler,
     TcpSocketConfigurationBase configuration,
     SaeaAwaiterPool handlerSaeaPool,
     SessionPool sessionPool,
     TcpSocketSaeaEngineBased agent)
 {
     NotifyEventHandler = notifyEventHandler;
     Configuration      = configuration;
     HandlerSaeaPool    = handlerSaeaPool;
     SessionPools       = sessionPool;
     Agent = agent;
 }
Пример #4
0
 internal TcpSocketSaeaSession(
     NotifyEventHandler <TcpSocketCompletionNotify, TcpSocketSaeaSession> notifyEventHandler,
     TcpSocketConfigurationBase configuration,
     SaeaAwaiterPool handlerSaeaPool,
     SessionPool sessionPool,
     TcpSocketSaeaEngineBased agent,
     LogHelper logHelper)
 {
     _notifyEventHandler = notifyEventHandler;
     _configuration      = configuration;
     _handlerSaeaPool    = handlerSaeaPool;
     _sessionPool        = sessionPool;
     _agent  = agent;
     _logger = logHelper;
 }