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