1
0
forked from Hay1tsme/artemis
artemis/titles/idz/echo.py

14 lines
386 B
Python
Raw Normal View History

2023-04-23 08:38:28 +00:00
from twisted.internet.protocol import DatagramProtocol
import logging
from core.config import CoreConfig
from .config import IDZConfig
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)