1
0
mirror of synced 2024-12-18 16:25:53 +01:00
artemis/titles/idz/echo.py

10 lines
265 B
Python
Raw Normal View History

2023-04-23 10:38:28 +02:00
import logging
2024-01-09 18:21:31 +01:00
class IDZEcho:
def connection_made(self, transport):
self.transport = transport
def datagram_received(self, data, addr):
2024-01-09 18:41:47 +01:00
logging.getLogger('idz').debug(f'Received echo from {addr}')
2024-01-09 18:21:31 +01:00
self.transport.sendto(data, addr)