Your IP : 3.22.217.176


Current Path : /opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/__pycache__/socket.cpython-311.opt-2.pyc

�

c��f����0�	ddlZddlTddlZddlZddlZddlZddlmZmZ	ddlZn
#e	$rdZYnwxYwe
edd��Ze
edd��Ze
edd��Z
gd	�Ze�eje����ejd
ed���ejded
���ejded���ejded���dZdZd�Zej����d���r�iZded<ded<ded<ded<ded<d ed!<d"ed#<d$ed%<d&ed'<d(ed)<d*ed+<d,ed-<d.ed/<d0ed1<d2ed3<d4ed5<d6ed7<d8ed9<d:ed;<d<ed=<d>ed?<d@edA<dBedC<dDedE<dFedG<dHedI<dJedK<dLedM<dNedO<dPedQ<dRedS<dTedU<dVedW<dXedY<dZed[<d\ed]<d^ed_<d`eda<dbedc<ddede<dfedg<dhedi<djedk<dledm<dnedo<dpedq<dreds<dtedu<dvedw<dxedy<dzed{<d|ed}<d~ed<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<d�ed�<e�dҦ�Gdӄd�e��ZGdՄd�ej��Zd�dׄZeejdئ�rddl Z d�dلZ!e�dڦ�eejdۦ�rddl Z d�d܄Z"e�dݦ�eejdަ�rd߄Z#e�d��e$e%dfd�Z&eed��rde%dfd�Z'ne&Z'e�d��d�e'_(ee
hZ)Gd�d�ej*��Z+d�d�Z,e-��Z.e.dfd�d�d�Z/d�Z0e$dd�d�d�d�Z1d�d�Z2dS)��N)�*)�IntEnum�IntFlag�EBADF�	�EAGAIN��EWOULDBLOCK)�fromfd�getfqdn�create_connection�
create_server�has_dualstack_ipv6�
AddressFamily�
SocketKindrc�T�|���o|�d��S)N�AF_��isupper�
startswith��Cs �-/opt/alt/python311/lib64/python3.11/socket.py�<lambda>rN���!�)�)�+�+�5�!�,�,�u�"5�"5��rc�T�|���o|�d��S)N�SOCK_rrs rrrSs��!�)�)�+�+�7�!�,�,�w�"7�"7�r�MsgFlagc�T�|���o|�d��S)N�MSG_rrs rrrXs��!�)�)�+�+�6�!�,�,�v�"6�"6�r�AddressInfoc�T�|���o|�d��S)N�AI_rrs rrr]rrz	127.0.0.1z::1c�@�		||��S#t$r|cYSwxYw�N)�
ValueError)�value�
enum_klasss  r�_intenum_converterr*cs@�����z�%� � � �������������s�
���winz)Specified event object handle is invalid.�zInsufficient memory available.�z#One or more parameters are invalid.�WzOverlapped operation aborted.i�z2Overlapped I/O event object not in signaled state.i�z)Overlapped operation will complete later.i�zThe operation was interrupted.i'zA bad file handle was passed.i'zPermission denied.i'z!A fault occurred on the network??i'z#An invalid operation was attempted.i&'zToo many open files.i('z!The socket operation would block.i3'z,A blocking operation is already in progress.i4'zOperation already in progress.i5'zSocket operation on nonsocket.i6'zDestination address required.i7'zMessage too long.i8'zProtocol wrong type for socket.i9'zBad protocol option.i:'zProtocol not supported.i;'zSocket type not supported.i<'zOperation not supported.i='zProtocol family not supported.i>'z0Address family not supported by protocol family.i?'zThe network address is in use.i@'z Cannot assign requested address.iA'zNetwork is down.iB'zNetwork is unreachable.iC'z$Network dropped connection on reset.iD'z!Software caused connection abort.iE'zThe connection has been reset.iF'zNo buffer space available.iG'zSocket is already connected.iH'zSocket is not connected.iI'zThe network has been shut down.iJ'zToo many references.iK'zThe operation timed out.iL'zConnection refused.iM'zCannot translate name.iN'zThe name is too long.iO'zThe host is down.iP'zThe host is unreachable.iQ'zDirectory not empty.iR'zToo many processes.iS'zUser quota exceeded.iT'zDisk quota exceeded.iU'zStale file handle reference.iV'zItem is remote.iW'z!Network subsystem is unavailable.ik'z!Winsock.dll version out of range.il'z(Successful WSAStartup not yet performed.im'zGraceful shutdown in progress.iu'z*No more results from WSALookupServiceNext.iv'zCall has been canceled.iw'z Procedure call table is invalid.ix'zService provider is invalid.iy'z&Service provider failed to initialize.iz'zSystem call failure.i{'zService not found.i|'zClass type not found.i}'i~'zCall was canceled.i'zDatabase query was refused.i�'zHost not found.i�*z Nonauthoritative host not found.i�*zThis is a nonrecoverable error.i�*z*Valid name, no data record requested type.i�*zQoS receivers.i�*zQoS senders.i�*zNo QoS senders.i�*zQoS no receivers.i+zQoS request confirmed.i+zQoS admission error.i+zQoS policy failure.i+zQoS bad style.i+zQoS bad object.i+zQoS traffic control error.i+zQoS generic error.i+zQoS service type error.i+zQoS flowspec error.i	+zInvalid QoS provider buffer.i
+zInvalid QoS filter style.i+i+zIncorrect QoS filter count.i
+zInvalid QoS object length.i+zIncorrect QoS flow count.i+zUnrecognized QoS object.i+zInvalid QoS policy object.i+zInvalid QoS flow descriptor.i+z'Invalid QoS provider-specific flowspec.i+z)Invalid QoS provider-specific filterspec.i+z&Invalid QoS shape discard mode object.i+z Invalid QoS shaping rate object.i+z!Reserved policy QoS element type.i+�errorTabc��eZdZdS)�_GiveupOnSendfileN)�__name__�
__module__�__qualname__�rrr1r1�s�������rr1c�F��eZdZ	gd�Zd"d�Zd�Zd�Zd�Zd�Zd	�Z	d
�Z
d#dddd�d
�Zee
d��rd$d�Znd$d�Zd$d�Zd�Zd$d�Zd�Zejfd�Zd�Z�fd�Ze�fd���Ze�fd���Ze
jdkrd�Zd�Znd�Zd�Zd e_d!e_�xZS)%�socket)�__weakref__�_io_refs�_closed���Nc��|�"|dkrt}|dkrt}|dkrd}tj�|||||��d|_d|_dS)Nr;rF)�AF_INET�SOCK_STREAM�_socketr7�__init__r9r:)�self�family�type�proto�filenos     rr@zsocket.__init__�sc��
�>���|�|� ���r�z�z�"����{�{��������f�d�E�6�B�B�B���
�����rc��|Sr&r5�rAs r�	__enter__zsocket.__enter__�s���rc�@�|js|���dSdSr&)r:�close)rA�argss  r�__exit__zsocket.__exit__�s'���|�	��J�J�L�L�L�L�L�	�	rc���	t|dd��}d|jj|jj|rdnd|���|j|j|jfz}|s�	|���}|r|dt|��zz
}n#ttf$rYnwxYw	|���}|r|dt|��zz
}n#ttf$rYnwxYw|dz
}|S)	Nr:Fz,<%s.%s%s fd=%i, family=%s, type=%s, proto=%iz	 [closed]�z
, laddr=%sz
, raddr=%s�>)
�getattr�	__class__r3r4rErBrCrD�getsockname�str�error�AttributeError�getpeername)rA�closed�s�laddr�raddrs     r�__repr__zsocket.__repr__�s)��	���y�%�0�0��:��~�(��~�*�$�,�{�{�"��{�{�}�}��{��y��z�
�
���
	�
��(�(�*�*���3����E�
�
�2�2�A����>�*�
�
�
���
����
��(�(�*�*���3����E�
�
�2�2�A����>�*�
�
�
���
����	�S����s$�+B�B�B�+C�C�Cc�<�td|jj�d����)Nzcannot pickle z object)�	TypeErrorrQr2rGs r�__getstate__zsocket.__getstate__s!���K���)@�K�K�K�L�L�Lrc���	t|�����}|�|j|j|j|���}|�|�����|S)N�rE)�duprErQrBrCrD�
settimeout�
gettimeout)rA�fd�socks   rraz
socket.dups^��	�
������
�
���~�~�d�k�4�9�d�j��~�L�L��������)�)�*�*�*��rc���	|���\}}t|j|j|j|���}t���)|���r|�d��||fS)Nr`T)�_acceptr7rBrCrD�getdefaulttimeoutrc�setblocking)rArd�addrres    r�acceptz
socket.acceptsq��	��<�<�>�>���D��d�k�4�9�d�j��D�D�D�����&�4�?�?�+<�+<�&����T�"�"�"��T�z�r�r)�encoding�errors�newlinec�0�	t|��hd�kstd|�d����d|v}d|vp|}d|v}d}	|r|	dz
}	|r|	dz
}	t||	��}
|xjdz
c_|�d	}|d
krtj}|d
kr|std���|
S|r|rt	j|
|
|��}n-|rt	j|
|��}nt	j|
|��}|r|St	j	|��}t	j
||||��}||_|S)N>�brl�wz
invalid mode z (only r, w, b allowed)rrrlrqrN�r;rz!unbuffered streams must be binary)�setr'�SocketIOr9�io�DEFAULT_BUFFER_SIZE�BufferedRWPair�BufferedReader�BufferedWriter�
text_encoding�
TextIOWrapper�mode)
rAr}�	bufferingrmrnro�writing�reading�binary�rawmode�raw�buffer�texts
             r�makefilezsocket.makefile/ss��	��4�y�y�O�O�O�+�+��*����O�P�P�P���+����+�,�W����������	��s�N�G��	��s�N�G��t�W�%�%���
�
���
�
����I��q�=�=��.�I���>�>��
F� �!D�E�E�E��J��	7�w�	7��&�s�C��;�;�F�F�
�	7��&�s�I�6�6�F�F��&�s�I�6�6�F��	��M��#�H�-�-������&�'�B�B����	��r�sendfilerc��|�|||��|���}	|���}n-#ttjf$r}t|���d}~wwxYw	t
j|��j}n!#t$r}t|���d}~wwxYw|sdSt|p|d��}|���}	|	dkrtd���ttd��rtj��}
ntj��}
|
�|tj��d}|
j}tj}
		|	r||	��st+d���|rt||z
|��}|dkrnc	|
||||��}|dkrnM||z
}||z
}nA#t,$r|	s
|��Y�rt$r}|dkrt|���|d�d}~wwxYw��||dkr&t|d��r|�|��SSS#|dkr&t|d��r|�|��wwwxYw)Nri@�&non-blocking sockets are not supported�PollSelectorTz	timed out�seek)�_check_sendfile_paramsrErUrv�UnsupportedOperationr1�os�fstat�st_size�OSError�minrcr'�hasattr�	selectorsr��SelectSelector�register�EVENT_WRITE�selectr��TimeoutError�BlockingIOErrorr�)rA�file�offset�count�socknorE�err�fsize�	blocksize�timeout�selector�
total_sent�selector_select�os_sendfile�sents               r�_sendfile_use_sendfilezsocket._sendfile_use_sendfile\s����'�'��f�e�<�<�<��[�[�]�]�F�
-���������"�B�$;�<�
-�
-�
-�'��,�,�,�����
-����
-����(�(�0�����
-�
-�
-�'��,�,�,�����
-�����
��q��E�N�U�G�4�4�I��o�o�'�'�G��!�|�|� �!I�J�J�J��y�.�1�1�
6�$�1�3�3���$�3�5�5�����f�i�&;�<�<�<��J�&�o�O��+�K� 
&�+��8���w�'?�'?�8�*�;�7�7�7��"�$'��
�(:�I�$F�$F�	�$��>�>�!�+�*�{�6�6�6�9�M�M��  �1�9�9�!��$���"�d�*�
�
��%+�!�!�!�&�.�,�O�-�-�-� ��"�,�,�,�%��?�?�
#4�C�"8�"8�8�!�t�+�����,����+�8"���>�>�g�d�F�&;�&;�>��I�I�f�%�%�%�%�"�>��:��>�>�g�d�F�&;�&;�>��I�I�f�%�%�%�%�"�>���sk�A�A,�A'�'A,�0B
�

B(�B#�#B(�9H'�F6�$H'�6G4�H'�	G4�G/�/G4�4H'�'/Ic� �td���)Nz,os.sendfile() not available on this platform)r1�rAr�r�r�s    rr�zsocket._sendfile_use_sendfile�s��#�>�@�@�
@rc��|�|||��|���dkrtd���|r|�|��|rt	|d��nd}d}|j}|j}		|rt	||z
|��}|dkrn^t||����}|snC		||��}	||	z
}|	t|��kr||	d�}nn#t$rY�=wxYw�A�z||dkr)t|d��r|�||z��SSS#|dkr)t|d��r|�||z��wwwxYw)Nrr�i Tr�)r�rcr'r�r��read�send�
memoryview�lenr�r�)
rAr�r�r�r�r��	file_read�	sock_send�datar�s
          r�_sendfile_use_sendzsocket._sendfile_use_send�s����#�#�D�&�%�8�8�8��?�?����!�!��E�F�F�F��	��I�I�f����(-�7�C��t�$�$�$�4�	��
��I�	��I�	�	/�
"��� #�E�J�$6�	� B� B�I� �A�~�~��!�)�)�I�"6�"6�7�7�����
"�	"�(�y�����#�d�*�
��#�d�)�)�+�+�#'����;�D�D�!��+�!�!�!� ��!����
"�
"�&��A�~�~�'�$��"7�"7�~��	�	�&�:�-�.�.�.�.��~��z�A�~�~�'�$��"7�"7�~��	�	�&�:�-�.�.�.�.��~���s0�;9D(�5C$�$D(�$
C1�.D(�0C1�1D(�(2Ec�L�dt|dd��vrtd���|jtzstd���|�_t	|t
��s"t
d�|�����|dkr$td�|�����dSdS)Nrqr}z$file should be opened in binary modez+only SOCK_STREAM type sockets are supportedz+count must be a positive integer (got {!r})r)rPr'rCr>�
isinstance�intr]�formatr�s    rr�zsocket._check_sendfile_params�s����g�d�F�C�0�0�0�0��C�D�D�D��y�;�&�	L��J�K�K�K����e�S�)�)�
Q��A�H�H��O�O�Q�Q�Q���z�z� �A�H�H��O�O�Q�Q�Q����zrc��		|�|||��S#t$r|�|||��cYSwxYwr&)r�r1r�r�s    rr�zsocket.sendfile�sb��	�"	@��.�.�t�V�U�C�C�C�� �	@�	@�	@��*�*�4���?�?�?�?�?�	@���s��!>�>c�v�|jdkr|xjdzc_|jr|���dSdS)Nrrs)r9r:rJrGs r�_decref_socketioszsocket._decref_socketios�sD���=�1����M�M�Q��M�M��<�	��J�J�L�L�L�L�L�	�	rc�0�|�|��dSr&)rJ)rA�_sss  r�_real_closezsocket._real_close�s���	�	�$�����rc�V�d|_|jdkr|���dSdS)NTr)r:r9r�rGs rrJzsocket.close�s6������=�A������������rc�T��	d|_t�����S)NT)r:�super�detach�rArQs �rr�z
socket.detach�s%���	�����w�w�~�~���rc�R��	tt��jt��Sr&)r*r�rBrr�s �rrBz
socket.familys���	�!�%�'�'�.�-�@�@�@rc�R��	tt��jt��Sr&)r*r�rCrr�s �rrCzsocket.type	s���	�!�%�'�'�,�
�;�;�;r�ntc�N�tj|�����Sr&)r��get_handle_inheritablerErGs r�get_inheritablezsocket.get_inheritables���,�T�[�[�]�]�;�;�;rc�T�tj|���|��dSr&)r��set_handle_inheritablerE�rA�inheritables  r�set_inheritablezsocket.set_inheritables#���%�d�k�k�m�m�[�A�A�A�A�Arc�N�tj|�����Sr&)r�r�rErGs rr�zsocket.get_inheritables���%�d�k�k�m�m�4�4�4rc�T�tj|���|��dSr&)r�r�rEr�s  rr�zsocket.set_inheritables#����t�{�{�}�}�k�:�:�:�:�:rz&Get the inheritable flag of the socketz&Set the inheritable flag of the socket)r;r;r;N)rlN�rN) r2r3r4�	__slots__r@rHrLr[r^rarkr�r�r�r�r�r�r�r�r?r7r�rJr��propertyrBrC�namer�r��__doc__�
__classcell__�rQs@rr7r7�sH�������D�6�6�6�I����� ���������<M�M�M�	�	�	���� )��t�T�)�)�)�)�)�V�w�r�:���E@�?	&�?	&�?	&�?	&�?	&�B	@�	@�	@�	@�"/�"/�"/�"/�HQ�Q�Q�@�@�@�@�.���&�n�������� � � � � ��A�A�A�A��X�A�
�<�<�<�<��X�<�

�w�$���	<�	<�	<�	B�	B�	B�	B�	5�	5�	5�	;�	;�	;�F�O��F�O�����rr7c�F�	t|��}t||||��Sr&)rar7)rdrBrCrD�nfds     rrrs(���
�b�'�'�C��&�$��s�+�+�+r�sendmsgc	��	|�|tjtjt	jd|��fg��S�N�i)r�r?�
SOL_SOCKET�
SCM_RIGHTS�array)re�buffers�fds�flags�addresss     r�send_fdsr�(sD��	��|�|�G�w�'9�����C�� 5� 5�'7�&8�9�9�	9rr��recvmsgc	��	tjd��}|�|tj||jz����\}}}}|D]h\}}	}
|tjkrR|	tjkrB|�|
dt|
��t|
��|jzz
����i|t|��||fSr�)
r�r�r?�CMSG_LEN�itemsizer�r��	frombytesr��list)re�bufsize�maxfdsr�r��msg�ancdatarj�
cmsg_level�	cmsg_type�	cmsg_datas           r�recv_fdsr�4s���	��k�#����$(�L�L����V�c�l�2�3�3�%5�%5�!��W�e�T�07�	K�	K�,�J�	�9��g�0�0�0�Y�'�BT�5T�5T��
�
�i�)I��I���#�i�.�.�3�<�*G�H�)I�J�K�K�K���D��I�I�u�d�*�*rr��sharec�(�	tddd|��S)Nr)r7)�infos r�	fromsharer�Hs��	�
�a��A�t�$�$�$rr�c�J�|tkrt}n"|tkrt}nt	d���|t
krt	d���|dkrt	d���t
|||��}	|�|df��|���|�	��dd�\}}t
|||��}	|�
d��	|�||f��n#ttf$rYnwxYw|�
d��|���\}}	n#|����xYw	|���n#|���wxYw	|�	��|���ks*|�	��|���krt#d���n.#|���|����xYw||fS)	Nz?Only AF_INET and AF_INET6 socket address families are supportedz)Only SOCK_STREAM socket type is supportedrzOnly protocol zero is supported�FTzUnexpected peer connection)r=�
_LOCALHOST�AF_INET6�
_LOCALHOST_V6r'r>r7�bind�listenrRri�connectr��InterruptedErrorrkrJrV�ConnectionError)
rBrCrD�host�lsockrj�port�csock�ssock�_s
          r�_fallback_socketpairrTs/��
�������	�8�	�	�����)�*�*�	*��{����D�E�E�E���z�z��:�;�;�;�
�6�4��'�'�E��
�
�
�D�!�9����
�������&�&�(�(��!��,�
��d��v�t�U�+�+��
	����e�$�$�$�
��
�
�t�T�l�+�+�+�+��#�%5�6�
�
�
���
�������d�#�#�#��|�|�~�~�H�E�1�1��	��K�K�M�M�M������
	���
�
�
�
�����
�
�
�
����
������5�#4�#4�#6�#6�6�6�� � �"�"�e�&7�&7�&9�&9�9�9�!�">�?�?�?�:���	���
�
�
�
���
�
�
�
�����5�>�sV�7AE5�E�)D�E�D�E�D�/E�E5�E�E5�5F�A#G3�3+H�
socketpairc��|� 	t}n#t$r
t}YnwxYwtj|||��\}}t||||�����}t||||�����}||fSr&)�AF_UNIX�	NameErrorr=r?rr7r�)rBrCrD�arqs     rrr�s����>�
!� �����
!�
!�
!� ����
!�����!�&�$��6�6���1��6�4�����
�
�3�3���6�4�����
�
�3�3���!�t�s�� � a8socketpair([family[, type[, proto]]]) -> (socket object, socket object)
Create a pair of socket objects from the sockets returned by the platform
socketpair() function.
The arguments are the same as for socket() except the default family is AF_UNIX
if defined on the platform; otherwise, the default is AF_INET.
c�v��eZdZ	d�Zd�Zd�Zd�Zd�Z�fd�Zd�Z	e
d���Ze
d	���Zd
�Z
�xZS)ruc���|dvrtd|z���tj�|��||_d|vr|dz
}||_d|v|_d|v|_d|_dS)N)rlrr�rw�rb�wb�rwbzinvalid mode: %rrqrlrrF)	r'rv�	RawIOBaser@�_sock�_mode�_reading�_writing�_timeout_occurred)rArer}s   rr@zSocketIO.__init__�s|���:�:�:��/�$�6�7�7�7�
����d�#�#�#���
��d�?�?��C�K�D���
��t���
��t���
�!&����rc�(�	|���|���|jrtd���		|j�|��S#t$r	d|_�t$r}|jtvrYd}~dS�d}~wwxYw)Nz!cannot read from timed out objectT)
�_checkClosed�_checkReadablerr�r�	recv_intor�rT�errno�_blocking_errnos�rArq�es   r�readintozSocketIO.readinto�s���	�	
�������������!�	?��=�>�>�>�		�
��z�+�+�A�.�.�.���
�
�
�)-��&���
�
�
��7�.�.�.��4�4�4�4�4������
���s�A�B�7B�B�Bc���	|���|���	|j�|��S#t$r}|jtvrYd}~dS�d}~wwxYwr&)r�_checkWritablerr�rTrrrs   r�writezSocketIO.write�s���	�
	
������������	��:�?�?�1�%�%�%���	�	�	��w�*�*�*��t�t�t�t�t������		���s�A�
A)�A$�#A$�$A)c�>�	|jrtd���|jS�NzI/O operation on closed socket.)rWr'rrGs r�readablezSocketIO.readable��)��	��;�	@��>�?�?�?��}�rc�>�	|jrtd���|jSr&)rWr'rrGs r�writablezSocketIO.writable�r(rc�r��	|jrtd���t�����Sr&)rWr'r��seekabler�s �rr,zSocketIO.seekable�s8���	��;�	@��>�?�?�?��w�w���!�!�!rc�^�	|���|j���Sr&)rrrErGs rrEzSocketIO.fileno�s-��	��������z� � �"�"�"rc�<�|js|���SdS)Nr;)rWrErGs rr�z
SocketIO.names���{�	��;�;�=�=� ��2rc��|jSr&)rrGs rr}z
SocketIO.mode	s
���z�rc��	|jrdStj�|��|j���d|_dSr&)rWrvrrJrr�rGs rrJzSocketIO.close
sM��	��;�	��F�
����4� � � ��
�$�$�&�&�&���
�
�
r)r2r3r4r@r!r$r'r*r,rEr�r�r}rJr�r�s@rruru�s���������
'�
'�
'����.��� ������"�"�"�"�"�#�#�#�����X������X��������rrurNc���	|���}|r|dvrt��}	t|��\}}}|�d|��|D]}d|vrn�	|}n#t$rYnwxYw|S)N)z0.0.0.0z::r�.)�strip�gethostname�
gethostbyaddr�insertrT)r��hostname�aliases�ipaddrss    rrrs�����:�:�<�<�D���4�,�,�,��}�}��
�%2�4�%8�%8�"��'�7�	���q�(�#�#�#��	�	�D��d�{�{�����D����
�
�
���
�����Ks�A"�"
A/�.A/F)�
all_errorsc��	|\}}g}t||dt��D]�}|\}}	}
}}d}
	t||	|
��}
|tur|
�|��|r|
�|��|
�|��|���|
cS#t$rK}|s|���|�	|��|
�|
�
��Yd}~��d}~wwxYwt|��r4	|s|d�td|���#|���wxYwtd���)Nrzcreate_connection failedz!getaddrinfo returns an empty list)
�getaddrinfor>r7�_GLOBAL_DEFAULT_TIMEOUTrbr�r��clearrT�appendrJr��ExceptionGroup)r�r��source_addressr:rr�
exceptions�res�af�socktyperD�	canonname�sare�excs               rr
r
5s�����J�D�$��J��4��q�+�6�6����-0�*��H�e�Y����	��"�h��.�.�D��5�5�5�����(�(�(��
*��	�	�.�)�)�)��L�L������������K�K�K���	�	�	��
#�� � �"�"�"����c�"�"�"����
�
�������������	�����:���	9�	��
$� ��m�#� �!;�Z�H�H�H��
�����������7�8�8�8s%�A0B � 
C5�*AC0�0C5�D"�"D8c�<�	tr*ttd��rttd��sdS	ttt
��5}|�ttd��	ddd��dS#1swxYwYdS#t$rYdSwxYw)N�IPPROTO_IPV6�IPV6_V6ONLYFrT)
�has_ipv6r�r?r7r�r>�
setsockoptrJrKrT)res rrrhs�������7�N�3�3���7�M�2�2���u��
�H�k�
*�
*�	�d��O�O�L�+�q�9�9�9��	�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�	�	�������u�u����s5�B
�#B�3B
�B�B
�B�B
�
B�B)rB�backlog�
reuse_port�dualstack_ipv6c��	|r$ttd��std���|r7t��std���|tkrtd���t|t��}	tjdvrHttd��r3	|�	ttd��n#t$rYnwxYw|r!|�	ttd��trz|tkro|r"|�	tt d��nKttd	��r6ttd
��r!|�	tt d��	|�|��n5#t$r(}|j�d|�d�}t|j|��d�d}~wwxYw|�|���n|�|��|S#t$r|����wxYw)
N�SO_REUSEPORTz+SO_REUSEPORT not supported on this platformz-dualstack_ipv6 not supported on this platformz'dualstack_ipv6 requires AF_INET6 family)r��cygwin�SO_REUSEADDRrsrrKrJz& (while attempting to bind on address �))r�r?r'rr�r7r>r�r�rMr�rTrTrRrLrJrKr��strerrorrr�rJ)r�rBrNrOrPrer�r�s        rrrxs2���"�H�'�'�>�:�:�H��F�G�G�G��H�!�#�#�	N��L�M�M�M��X����F�G�G�G��&�+�&�&�D�'��7�*�*�*����0�0�+�
����
�L�!�<�<�<�<���
�
�
���
�����	9��O�O�J��a�8�8�8��	>��(�*�*��
>�����k�1�=�=�=�=���-�0�0�
>��G�^�4�4�
>�����k�1�=�=�=�	2��I�I�g�������	2�	2�	2�����w�w�w�(�C���	�3�'�'�T�1�����	2�����?��K�K�M�M�M�M��K�K�� � � ���������
�
����
����sU�7#G+�!B=�<G+�=
C
�G+�	C
�
B'G+�2F�G+�
F:�#F5�5F:�:0G+�+ Hc���	g}tj||||||��D]J}|\}}	}}
}|�t|t��t|	t
��||
|f���K|Sr&)r?r<r?r*rr)rrrBrCrDr��addrlistrCrDrErFrGs            rr<r<�s�����H��"�4��v�t�U�E�J�J�0�0��-0�*��H�e�Y�����+�B�
�>�>�+�H�j�A�A��	�2�/�	0�	0�	0�	0��Or)rr�)rN)rrrr)3r?r��sysrvr��enumrrr�ImportErrorrPrrr
�__all__�extend�_get_exports_list�	_convert_r2r�r�r*�platform�lowerrr/r?�	Exceptionr1r7rr�r�r�r�r�r=r>rrr�rrrur�objectr=r
rrr<r5rr�<module>rds���-�^������������������������!�!�!�!�!�!�!�!���L�L�L�L�������E�E�E��������w��"�"��	����"�	%�	%���g�e�]�B�/�/��@�@�@�����#�r�#�G�,�,�-�-�-������5�5�7�7�7�
�����7�7�9�9�9�
�����6�6�8�8�8�
�����5�5�7�7�7�
�
��
�����<�����"�"�5�)�)�a��H�=�H�Q�K�2�H�Q�K�8�H�R�L�3�H�S�M�H�H�S�M�?�H�S�M�6�H�U�O�5�H�U�O�*�H�U�O�9�H�U�O�;�H�U�O�,�H�U�O�9�H�U�O�D�H�U�O�6�H�U�O�6�H�U�O�5�H�U�O�)�H�U�O�7�H�U�O�,�H�U�O�/�H�U�O�2�H�U�O�0�H�U�O�6�H�U�O�H�H�U�O�6�H�U�O�8�H�U�O�(�H�U�O�/�H�U�O�<�H�U�O�9�H�U�O�6�H�U�O�2�H�U�O�4�H�U�O�0�H�U�O�7�H�U�O�,�H�U�O�0�H�U�O�+�H�U�O�.�H�U�O�-�H�U�O�)�H�U�O�0�H�U�O�,�H�U�O�+�H�U�O�,�H�U�O�,�H�U�O�4�H�U�O�'�H�U�O�9�H�U�O�9�H�U�O�@�H�U�O�6�H�U�O�B�H�U�O�/�H�U�O�8�H�U�O�4�H�U�O�>�H�U�O�,�H�U�O�*�H�U�O�-�H�U�O�B�H�U�O�*�H�U�O�3�H�U�O�'�H�U�O�8�H�U�O�7�H�U�O�B�H�U�O�&�H�U�O�$�H�U�O�'�H�U�O�)�H�U�O�.�H�U�O�,�H�U�O�+�H�U�O�&�H�U�O�'�H�U�O�2�H�U�O�*�H�U�O�/�H�U�O�+�H�U�O�4�H�U�O�1�H�U�O�1�H�U�O�3�H�U�O�2�H�U�O�1�H�U�O�0�H�U�O�2�H�U�O�4�H�U�O�?�H�U�O�A�H�U�O�>�H�U�O�8�H�U�O�9�H�U�O��N�N�:����)�(�(�(�(�	�(�(�(�DG�DG�DG�DG�DG�W�^�DG�DG�DG�L
,�,�,�,��7�7�>�9�%�%�
��L�L�L�9�9�9�9��N�N�:����
�7�7�>�9�%�%���L�L�L�+�+�+�+�"�N�N�:����
�7�7�>�7�#�#� �%�%�%��N�N�;����
!(�k��4�4�4�4�l�7�7�L�!�!�!��[��	�	�	�	�	�&�J��N�N�<� � � ��
���[�*��r�r�r�r�r�r�|�r�r�r�j����6!�&�(�(��'>�%)�09�9>�09�09�09�09�09�f
�
�
� &-�d�u�!&�B�B�B�B�B�J�����s�(�2�2

?>