AlkantarClanX12

Your IP : 3.145.63.148


Current Path : /opt/alt/python310/lib64/python3.10/asyncio/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/asyncio/__pycache__/trsock.cpython-310.pyc

o

6��f��@s"ddlZddlZGdd�d�ZdS)�Nc@s�eZdZdZdZdejfdd�Zdd�Zedd	��Z	ed
d��Z
edd
��Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd,d-�Zd.d/�Zd0d1�Zd2d3�Zd4d5�Zd6d7�Z d8d9�Z!d:d;�Z"d<d=�Z#d>d?�Z$d@dA�Z%dBdC�Z&dDdE�Z'dFdG�Z(dHdI�Z)dJdK�Z*dLdM�Z+dNdO�Z,dPdQ�Z-dRdS�Z.dTdU�Z/dVdW�Z0dXdY�Z1dZd[�Z2d\S)]�TransportSocketz�A socket-like wrapper for exposing real transport sockets.

    These objects can be safely returned by APIs like
    `transport.get_extra_info('socket')`.  All potentially disruptive
    operations (like "socket.close()") are banned.
    ��_sock�sockcCs
||_dS�Nr)�selfr�r�5/opt/alt/python310/lib64/python3.10/asyncio/trsock.py�__init__�
zTransportSocket.__init__cCstjd|�d�t|d�dS)NzUsing z� on sockets returned from get_extra_info('socket') will be prohibited in asyncio 3.9. Please report your use case to bugs.python.org.)�source)�warnings�warn�DeprecationWarning)rZwhatrrr	�_nas

�zTransportSocket._nacC�|jjSr)r�family�rrrr	r�zTransportSocket.familycCrr)r�typerrrr	rrzTransportSocket.typecCrr)r�protorrrr	r"rzTransportSocket.protocCs�d|���d|j�d|j�d|j��}|��dkrMz|��}|r'|�d|��}Wn
tjy2Ynwz|��}|rA|�d|��}Wn
tjyLYnw|�d�S)	Nz<asyncio.TransportSocket fd=z	, family=z, type=z, proto=���z, laddr=z, raddr=�>)�filenorrr�getsockname�socket�error�getpeername)r�sZladdrZraddrrrr	�__repr__&s4��������
zTransportSocket.__repr__cCstd��)Nz/Cannot serialize asyncio.TransportSocket object)�	TypeErrorrrrr	�__getstate__=szTransportSocket.__getstate__cC�
|j��Sr)rrrrrr	r@rzTransportSocket.filenocCr"r)r�duprrrr	r#CrzTransportSocket.dupcCr"r)r�get_inheritablerrrr	r$FrzTransportSocket.get_inheritablecCs|j�|�dSr)r�shutdown)rZhowrrr	r%IszTransportSocket.shutdowncOs|jj|i|��Sr)r�
getsockopt�r�args�kwargsrrr	r&NszTransportSocket.getsockoptcOs|jj|i|��dSr)r�
setsockoptr'rrr	r*QszTransportSocket.setsockoptcCr"r)rrrrrr	rTrzTransportSocket.getpeernamecCr"r)rrrrrr	rWrzTransportSocket.getsocknamecCr"r)r�
getsockbynamerrrr	r+ZrzTransportSocket.getsockbynamecC�|�d�|j��S)Nzaccept() method)rr�acceptrrrr	r-]�

zTransportSocket.acceptcO�|�d�|jj|i|��S)Nzconnect() method)rr�connectr'rrr	r0a�
zTransportSocket.connectcOr/)Nzconnect_ex() method)rr�
connect_exr'rrr	r2er1zTransportSocket.connect_excOr/)Nz
bind() method)rr�bindr'rrr	r3ir1zTransportSocket.bindcOr/)Nzioctl() method)rr�ioctlr'rrr	r4mr1zTransportSocket.ioctlcOr/)Nzlisten() method)rr�listenr'rrr	r5qr1zTransportSocket.listencCr,)Nzmakefile() method)rr�makefilerrrr	r6ur.zTransportSocket.makefilecOr/)Nzsendfile() method)rr�sendfiler'rrr	r7yr1zTransportSocket.sendfilecCr,)Nzclose() method)rr�closerrrr	r8}r.zTransportSocket.closecCr,)Nzdetach() method)rr�detachrrrr	r9�r.zTransportSocket.detachcOr/)Nzsendmsg_afalg() method)rr�
sendmsg_afalgr'rrr	r:�r1zTransportSocket.sendmsg_afalgcOr/)Nzsendmsg() method)rr�sendmsgr'rrr	r;�r1zTransportSocket.sendmsgcOr/)Nzsendto() method)rr�sendtor'rrr	r<�r1zTransportSocket.sendtocOr/)Nz
send() method)rr�sendr'rrr	r=�r1zTransportSocket.sendcOr/)Nzsendall() method)rr�sendallr'rrr	r>�r1zTransportSocket.sendallcOr/)Nzset_inheritable() method)rr�set_inheritabler'rrr	r?�r1zTransportSocket.set_inheritablecCs|�d�|j�|�S)Nzshare() method)rr�share)rZ
process_idrrr	r@��
zTransportSocket.sharecOr/)Nzrecv_into() method)rr�	recv_intor'rrr	rB�r1zTransportSocket.recv_intocOr/)Nzrecvfrom_into() method)rr�
recvfrom_intor'rrr	rC�r1zTransportSocket.recvfrom_intocOr/)Nzrecvmsg_into() method)rr�recvmsg_intor'rrr	rD�r1zTransportSocket.recvmsg_intocOr/)Nzrecvmsg() method)rr�recvmsgr'rrr	rE�r1zTransportSocket.recvmsgcOr/)Nzrecvfrom() method)rr�recvfromr'rrr	rF�r1zTransportSocket.recvfromcOr/)Nz
recv() method)rr�recvr'rrr	rG�r1zTransportSocket.recvcCs|dkrdStd��)Nrz<settimeout(): only 0 timeout is allowed on transport sockets��
ValueError)r�valuerrr	�
settimeout�s
�zTransportSocket.settimeoutcCsdS)Nrrrrrr	�
gettimeout�szTransportSocket.gettimeoutcCs|sdStd��)Nz3setblocking(): transport sockets cannot be blockingrH)r�flagrrr	�setblocking�s
�zTransportSocket.setblockingcCr,�Nzcontext manager protocol)rr�	__enter__rrrr	rP�r.zTransportSocket.__enter__cGs|�d�|jj|�SrO)rr�__exit__)r�errrrr	rQ�rAzTransportSocket.__exit__N)3�__name__�
__module__�__qualname__�__doc__�	__slots__rr
r�propertyrrrrr!rr#r$r%r&r*rrr+r-r0r2r3r4r5r6r7r8r9r:r;r<r=r>r?r@rBrCrDrErFrGrKrLrNrPrQrrrr	rsd


r)rr
rrrrr	�<module>s