forked from Hay1tsme/artemis
15 lines
405 B
Python
15 lines
405 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):
|
|
message = data.decode()
|
|
self.logger.debug(f'Received echo from {addr}')
|
|
self.transport.sendto(data, addr)
|