예제 #1
0
 async def handle_ping(self, _: Ping):
     """ Handle an Ping message. Pong the backend """
     await ZMQUtils.send(self._backend_socket, Pong())
예제 #2
0
파일: backend.py 프로젝트: eldipa/INGInious
 async def handle_client_ping(self, client_addr, _: Ping):
     """ Handle an Ping message. Pong the client """
     await ZMQUtils.send_with_addr(self._client_socket, client_addr, Pong())
예제 #3
0
 async def __handle_ping(self, _ : Ping):
     """ Handle a Ping message. Pong the backend """
     self.__last_ping = time.time()
     await ZMQUtils.send(self.__backend_socket, Pong())