mirror of
https://gitea.tendokyu.moe/Hay1tsme/artemis.git
synced 2026-02-08 08:37:38 +08:00
14 lines
386 B
Python
14 lines
386 B
Python
from twisted.internet.protocol import DatagramProtocol
|
|
import logging
|
|
|
|
from core.config import CoreConfig
|
|
from .config import IDZConfig
|
|
|
|
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)
|