artemis/titles/idz/echo.py
2024-01-09 15:59:58 -05:00

10 lines
265 B
Python

import logging
class IDZEcho:
def connection_made(self, transport):
self.transport = transport
def datagram_received(self, data, addr):
logging.getLogger('idz').debug(f'Received echo from {addr}')
self.transport.sendto(data, addr)