%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/dns/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/dns/__pycache__/_trio_backend.cpython-312.pyc

�

5��eM ���dZddlZddlZddlZddlZddlZddlZddlZejjd�sed��d�ZejjZGd�dej j"�ZGd�d	ej j$�Zejjd
�rcddlZddlZddlZej,Zej0jj2ZddlmZmZmZGd�d
e�ZGd�dej@�Z!nej jDZ!Gd�dej jF�Z#y)z$trio async I/O library query support�N�trioztrio not found or too oldc�l�|�tj|�Stjj	�S�N)r�
move_on_after�dns�
_asyncbackend�NullContext��timeouts �3/usr/lib/python3/dist-packages/dns/_trio_backend.py�_maybe_timeoutr
s.�����!�!�'�*�*�� � �,�,�.�.�c�B��eZdZ�fd�Zd�Zd�Zd�Zd�Zd�Zd�Z	�xZ
S)�DatagramSocketc�F��t�|�|j�||_yr)�super�__init__�family�socket)�selfr�	__class__s  �rrzDatagramSocket.__init__!s���
������'���rc���K�t|�5|jj||��d{���cddd�S7�
#1swYnxYwtjj|����w�Nr
)r
r�sendtor�	exception�Timeout)r�what�destinationrs    rrzDatagramSocket.sendto%sb����
�G�
$�	?����+�+�D�+�>�>�	?�	?�>��	?�	?���m�m�#�#��$�
�	
�s%�A*� >�<�>�
A*�>�A�'A*c���K�t|�5|jj|��d{���cddd�S7�
#1swYnxYwtjj|����wr)r
r�recvfromrrr�r�sizers   rr zDatagramSocket.recvfrom,�Y����
�G�
$�	4����-�-�d�3�3�	4�	4�3��	4�	4���m�m�#�#�G�#�4�4��%�A)�=�;�=�
A)�=�A�'A)c��@K�|jj�y�wr)r�close�rs rr&zDatagramSocket.close1s����������s�c��>K�|jj�S�wr)r�getpeernamer's rr)zDatagramSocket.getpeername4������{�{�&�&�(�(���c��>K�|jj�S�wr)r�getsocknamer's rr-zDatagramSocket.getsockname7r*r+c��K�t��wr��NotImplementedError�rrs  r�getpeercertzDatagramSocket.getpeercert:s����!�!���	)�__name__�
__module__�__qualname__rrr r&r)r-r2�
__classcell__�rs@rrr s&����
�5�
�)�)�"rrc�8�eZdZd	d�Zd�Zd�Zd�Zd�Zd�Zd�Z	y)
�StreamSocketc�.�||_||_||_yr)r�stream�tls)rrr<r=s    rrzStreamSocket.__init__?s����������rc���K�t|�5|jj|��d{���cddd�S7�
#1swYnxYwtjj|����wr)r
r<�send_allrrr)rrrs   r�sendallzStreamSocket.sendallDr#r$c���K�t|�5|jj|��d{���cddd�S7�
#1swYnxYwtjj|����wr)r
r<�receive_somerrrr!s   r�recvzStreamSocket.recvIsY����
�G�
$�	8����1�1�$�7�7�	8�	8�7��	8�	8���m�m�#�#�G�#�4�4�r$c��TK�|jj��d{���y7��wr)r<�acloser's rr&zStreamSocket.closeNs�����k�k� � �"�"�"�s�(�&�(c���K�|jr.|jjjj	�S|jjj	�S�wr)r=r<�transport_streamrr)r's rr)zStreamSocket.getpeernameQ�E�����8�8��;�;�/�/�6�6�B�B�D�D��;�;�%�%�1�1�3�3���AA!c���K�|jr.|jjjj	�S|jjj	�S�wr)r=r<rGrr-r's rr-zStreamSocket.getsocknameWrHrIc���K�|jrPt|�5|jj��d{���ddd�|jj	�St
�7�,#1swY�+xYw�wr)r=r
r<�do_handshaker2r0r1s  rr2zStreamSocket.getpeercert]s^�����8�8���(�
1��k�k�.�.�0�0�0�
1��;�;�*�*�,�,�%�%�1��
1�
1�s+�A3�A'�A%�A'�(A3�%A'�'A0�,A3N)F)
r4r5r6rr@rCr&r)r-r2�rrr:r:>s%���
5�
5�
#�4�4�&rr:�doh)�_compute_times�_expiration_for_this_attempt�
_remainingc�8��eZdZ�fd�Z	dd�Z	dd�Zd�Z�xZS)�_NetworkBackendc�Z��t�|��||_||_||_||_yr)rr�_local_port�	_resolver�_bootstrap_address�_family)r�resolver�
local_port�bootstrap_addressrrs     �rrz_NetworkBackend.__init__qs,����G���)�D��%�D�N�&7�D�#�!�D�Lrc	��ZK�g}t|�\}}tjj|�r|j	|�n�|j
�|j	|j
�nnt
|�}|j}	|rtjj|�}	|jj||	|���d{���}
|
j�}|D]�}	tjj|�}|�|jdk7r||jf}
nd}
||f}td|�}t
|�}t�j|t j"d|
||��d{���}t%|j&�cSt*j,�7��7�.#t($rY��wxYw�w)N)r�lifetimerg@)rOr�inet�
is_address�appendrWrQrX�af_for_addressrV�resolve_name�	addressesrUrP�Backend�make_socketr�SOCK_STREAM�_CoreTrioStreamr<�	Exception�httpcore�ConnectError)r�host�portr�
local_address�socket_optionsrc�_�
expirationr�answers�address�af�sourcer�attempt_expiration�socks                 r�connect_tcpz_NetworkBackend.connect_tcpxs������I�*�7�3�M�A�z��x�x�"�"�4�(�� � ��&��(�(�4�� � ��!8�!8�9�$�Z�0������ � �X�X�4�4�]�C�F� $��� ;� ;���'�!<�!���$�-�-�/�	�$�
������0�0��9�B�$�0�D�4D�4D��4I�"/��1A�1A�!B��!%��#*�D�/�K�)E�c�:�)V�&�(�);�<�G�!(��!6�!6��F�.�.��6�;��"��D�+�4�;�;�7�7�
� �'�'�'�)����!����sI�CF+�F�F+� BF�+F�,F�F+�F�	F(�%F+�'F(�(F+c��K�t��wrr/)r�pathrrns    r�connect_unix_socketz#_NetworkBackend.connect_unix_socket�s����&�%�r3c��JK�tj|��d{���y7��wr�r�sleep)r�secondss  rr}z_NetworkBackend.sleep�s�����*�*�W�%�%�%���#�!�#r)r4r5r6rrwrzr}r7r8s@rrSrSps$���	"�FJ�"	(�J15�	&�
	&rrSc�>��eZdZdddejd��fd�
Z�xZS)�_HTTPTransportrN)rZr[rYrc���|�ddl}|jj�}t�|�|i|��t||||�|j_y)Nr)�dns.asyncresolver�
asyncresolver�ResolverrrrS�_pool�_network_backend)	rrZr[rYr�args�kwargsrrs	        �rrz_HTTPTransport.__init__�sO�����(��,�,�5�5�7���G��d�-�f�-�*9��*�&7��+�D�J�J�'r)r4r5r6r�	AF_UNSPECrr7r8s@rr�r��s!����"���#�#�
	�	rr�c�8�eZdZd�Z						dd�Zd�Zd�Zd�Zy)rdc��y)NrrMr's r�namezBackend.name�s��rNc	��,K�tjj|||�}	d}
	|r#|	jt||���d{���|tjk(r]d}t|�5|	j
t||���d{���d}ddd�|s tjj|���|tjk(rt|	�S|tjk(rAtj|	�}
d}|rd}	tj|
||��}
t#||
|�St%dd|��z��7��7��#1swY��xYw#t$r|	j��wxYw#t$r|
j!��d{���7�wxYw�w)NFTr
)�server_hostnamezunsupported socket ztype )rr�bind�_lltuplerfr
�connectrrrrhr&�
SOCK_DGRAMr�SocketStream�	SSLStreamrEr:r0)
rrs�socktype�protortrr�ssl_contextr��sr<�	connectedr=s
             rrezBackend.make_socket�s�����
�K�K���r�8�U�3����	���f�f�X�f�b�1�2�2�2��6�-�-�-�!�	�#�G�,�%��)�)�H�[�"�$=�>�>�>� $�I�%�!��-�-�/�/� '�0����v�(�(�(�!�!�$�$�
��+�+�
+��&�&�q�)�F��C�����!�^�^���_��F� ��F�C�0�0�!�!�e�H�:�$6�6�
�	
�93��?��%�%���	�
�G�G�I��	��!�� �-�-�/�)�)���s}�$F� E�D?�$E�,E�E�E�*E�<AF�	E-�!F�?E�E�E�E�E*�*F�-F�	F�
F�Fc��JK�tj|��d{���y7��wrr|)r�intervals  rr}z
Backend.sleep�s�����j�j��"�"�"�rc��tSr)r�r's r�get_transport_classzBackend.get_transport_class�s���rc��K�t|�5|�d{���cddd�S7�
#1swYnxYwtjj|����wr)r
rrr)r�	awaitablers   r�wait_forzBackend.wait_for�sP����
�G�
$�	#�"�?�	#�	#�"��	#�	#���m�m�#�#��$�
�	
�s#�A�$�"�$�
A�$�-�'A)rNNNNN)r4r5r6r�rer}r�r�rMrrrdrd�s0���������-
�^#��
rrd)$�__doc__rr�trio.socket�dns._asyncbackendr�
dns._features�
dns.exception�dns.inet�	_features�have�ImportErrorr
r^�low_level_address_tupler�rrr:ri�httpcore._backends.trio�httpx�AsyncNetworkBackend�_CoreAsyncNetworkBackend�	_backends�
TrioStreamrg�	dns.queryrOrPrQrS�AsyncHTTPTransportr��
NullTransportrdrMrr�<module>r�s��+�
�������
�}�}���&�!�
�1�
2�2�/��8�8�+�+��
"�S�&�&�5�5�"�<%&�3�$�$�1�1�%&�P�=�=���e���"��'�;�;���(�(�-�-�8�8�O�R�R�2&�2�2&�h��1�1��*�&�&�4�4�N�>
�c���'�'�>
r

Zerion Mini Shell 1.0