예제 #1
0
        private bool sendResponse(TcpGateway gateway)
        {
            TaskCompleted completed;

            if (!_buffer.Poll(out completed)) return false;

            gateway.Process(completed);
            return true;
        }
예제 #2
0
 private static bool receiveMessage(TcpGateway gateway)
 {
     bool newRequest = gateway.ReceiveMessage();
     return newRequest;
 }