private static bool receiveMessage(TcpGateway gateway) { bool newRequest = gateway.ReceiveMessage(); return newRequest; }