private bool sendResponse(TcpGateway gateway) { TaskCompleted completed; if (!_buffer.Poll(out completed)) return false; gateway.Process(completed); return true; }
private static bool receiveMessage(TcpGateway gateway) { bool newRequest = gateway.ReceiveMessage(); return newRequest; }