public ReceiveCompletionProcessor(ZerioConfiguration configuration, RioCompletionQueue receivingCompletionQueue, ISessionManager sessionManager, RequestProcessingEngine requestProcessingEngine)
 {
     _configuration            = configuration;
     _receivingCompletionQueue = receivingCompletionQueue;
     _sessionManager           = sessionManager;
     _requestProcessingEngine  = requestProcessingEngine;
 }
Esempio n. 2
0
 public void InitiateReceiving(RequestProcessingEngine requestProcessingEngine)
 {
     for (var bufferSegmentId = 0; bufferSegmentId < _configuration.ReceivingBufferCount; bufferSegmentId++)
     {
         requestProcessingEngine.RequestReceive(Id, bufferSegmentId);
     }
 }