o
    ¯b]  ã                   @   s4   d Z ddlmZ G dd„ deƒZG dd„ deƒZdS )z4
Interface definitions for working with raw packets
é    )Ú	Interfacec                   @   ó    e Zd ZdZdd„ Zdd„ ZdS )ÚIRawDatagramProtocolz?
    An interface for protocols such as UDP, ICMP and TCP.
    c                 C   ó   dS ©z4
        Add a protocol on top of this one.
        N© ©ÚnumÚprotor   r   ú2/usr/lib/python3/dist-packages/twisted/pair/raw.pyÚaddProto   ó    zIRawDatagramProtocol.addProtoc                 C   r   ©zI
        An IP datagram has been received. Parse and process it.
        Nr   )ÚdataÚpartialÚsourceÚdestÚprotocolÚversionÚihlÚtosÚtot_lenÚfragment_idÚfragment_offsetÚdont_fragmentÚmore_fragmentsÚttlr   r   r   ÚdatagramReceived   r   z%IRawDatagramProtocol.datagramReceivedN©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   
   ó    r   c                   @   r   )ÚIRawPacketProtocolzB
    An interface for low-level protocols such as IP and ARP.
    c                 C   r   r   r   r   r   r   r   r   .   r   zIRawPacketProtocol.addProtoc                 C   r   r   r   )r   r   r   r   r   r   r   r   r   3   r   z#IRawPacketProtocol.datagramReceivedNr   r   r   r   r   r$   )   r#   r$   N)r"   Úzope.interfacer   r   r$   r   r   r   r   Ú<module>   s   