Exemplo n.º 1
0
        public SessionManager(InternalZerioConfiguration configuration, CompletionQueues completionQueues)
        {
            _configuration    = configuration;
            _completionQueues = completionQueues;

            CreateSessions();
        }
Exemplo n.º 2
0
        public Session(int sessionId, ZerioConfiguration configuration, CompletionQueues completionQueues)
        {
            Id                = sessionId;
            _configuration    = configuration;
            _completionQueues = completionQueues;
            _receivingBuffer  = new UnmanagedRioBuffer <RioBufferSegment>(configuration.ReceivingBufferCount, _configuration.ReceivingBufferLength);

            _messageFramer = new MessageFramer(configuration.FramingBufferLength);
            _messageFramer.MessageFramed += OnMessageFramed;
        }
Exemplo n.º 3
0
        public Session(int sessionId, InternalZerioConfiguration configuration, CompletionQueues completionQueues)
        {
            Id                = sessionId;
            _configuration    = configuration;
            _completionQueues = completionQueues;
            _receivingBuffer  = new UnmanagedRioBuffer <RioBufferSegment>(configuration.ReceivingBufferCount, _configuration.ReceivingBufferLength);

            _messageFramer = new MessageFramer(configuration.FramingBufferLength);
            _messageFramer.MessageFramed += OnMessageFramed;

            SendingBatch = new SessionSendingBatch(configuration.SendingBufferLength);
            Conflater    = new SendingRequestConflater(sessionId, configuration.SendingBufferLength);
        }