10 lines
265 B
Python
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)
|