示例#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;
 }