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