13 lines
334 B
Python
13 lines
334 B
Python
import abc
|
|
|
|
from source import packets
|
|
|
|
|
|
class BaseEvent(abc.ABC):
|
|
@abc.abstractmethod
|
|
def handle(self, packet: packets.base.BasePacket, address: tuple) -> None:
|
|
"""
|
|
Handle a packet
|
|
:param packet: the packet to handle
|
|
:param address: the address of the machine that sent the packet
|
|
"""
|