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)
|