Mini Shell

Direktori : /proc/self/root/lib64/python3.9/asyncio/__pycache__/
Upload File :
Current File : //proc/self/root/lib64/python3.9/asyncio/__pycache__/trsock.cpython-39.pyc

a

�DOg��@s"ddlZddlZGdd�d�ZdS)�Nc@s�eZdZdZdZejd�dd�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�&/usr/lib64/python3.9/asyncio/trsock.py�__init__szTransportSocket.__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._nacCs|jjSr)r�family�rrrr	rszTransportSocket.familycCs|jjSr)r�typerrrr	rszTransportSocket.typecCs|jjSr)r�protorrrr	r"szTransportSocket.protocCs�d|���d|j�d|j�d|j��}|��dkr�z|��}|rN|�d|��}WntjydYn0z|��}|r�|�d|��}Wntjy�Yn0|�d�S)	Nz<asyncio.TransportSocket fd=z	, family=z, type=z, proto=���z, laddr=z, raddr=�>)�filenorrr�getsockname�socket�error�getpeername)r�s�laddr�raddrrrr	�__repr__&s,����zTransportSocket.__repr__cCstd��dS)Nz/Cannot serialize asyncio.TransportSocket object)�	TypeErrorrrrr	�__getstate__=szTransportSocket.__getstate__cCs
|j��Sr)rrrrrr	r@szTransportSocket.filenocCs
|j��Sr)r�duprrrr	r!CszTransportSocket.dupcCs
|j��Sr)r�get_inheritablerrrr	r"FszTransportSocket.get_inheritablecCs|j�|�dSr)r�shutdown)r�howrrr	r#IszTransportSocket.shutdowncOs|jj|i|��Sr)r�
getsockopt�r�args�kwargsrrr	r%NszTransportSocket.getsockoptcOs|jj|i|��dSr)r�
setsockoptr&rrr	r)QszTransportSocket.setsockoptcCs
|j��Sr)rrrrrr	rTszTransportSocket.getpeernamecCs
|j��Sr)rrrrrr	rWszTransportSocket.getsocknamecCs
|j��Sr)r�
getsockbynamerrrr	r*ZszTransportSocket.getsockbynamecCs|�d�|j��S)Nzaccept() method)rr�acceptrrrr	r+]s
zTransportSocket.acceptcOs|�d�|jj|i|��S)Nzconnect() method)rr�connectr&rrr	r,as
zTransportSocket.connectcOs|�d�|jj|i|��S)Nzconnect_ex() method)rr�
connect_exr&rrr	r-es
zTransportSocket.connect_excOs|�d�|jj|i|��S)Nz
bind() method)rr�bindr&rrr	r.is
zTransportSocket.bindcOs|�d�|jj|i|��S)Nzioctl() method)rr�ioctlr&rrr	r/ms
zTransportSocket.ioctlcOs|�d�|jj|i|��S)Nzlisten() method)rr�listenr&rrr	r0qs
zTransportSocket.listencCs|�d�|j��S)Nzmakefile() method)rr�makefilerrrr	r1us
zTransportSocket.makefilecOs|�d�|jj|i|��S)Nzsendfile() method)rr�sendfiler&rrr	r2ys
zTransportSocket.sendfilecCs|�d�|j��S)Nzclose() method)rr�closerrrr	r3}s
zTransportSocket.closecCs|�d�|j��S)Nzdetach() method)rr�detachrrrr	r4�s
zTransportSocket.detachcOs|�d�|jj|i|��S)Nzsendmsg_afalg() method)rr�
sendmsg_afalgr&rrr	r5�s
zTransportSocket.sendmsg_afalgcOs|�d�|jj|i|��S)Nzsendmsg() method)rr�sendmsgr&rrr	r6�s
zTransportSocket.sendmsgcOs|�d�|jj|i|��S)Nzsendto() method)rr�sendtor&rrr	r7�s
zTransportSocket.sendtocOs|�d�|jj|i|��S)Nz
send() method)rr�sendr&rrr	r8�s
zTransportSocket.sendcOs|�d�|jj|i|��S)Nzsendall() method)rr�sendallr&rrr	r9�s
zTransportSocket.sendallcOs|�d�|jj|i|��S)Nzset_inheritable() method)rr�set_inheritabler&rrr	r:�s
zTransportSocket.set_inheritablecCs|�d�|j�|�S)Nzshare() method)rr�share)rZ
process_idrrr	r;�s
zTransportSocket.sharecOs|�d�|jj|i|��S)Nzrecv_into() method)rr�	recv_intor&rrr	r<�s
zTransportSocket.recv_intocOs|�d�|jj|i|��S)Nzrecvfrom_into() method)rr�
recvfrom_intor&rrr	r=�s
zTransportSocket.recvfrom_intocOs|�d�|jj|i|��S)Nzrecvmsg_into() method)rr�recvmsg_intor&rrr	r>�s
zTransportSocket.recvmsg_intocOs|�d�|jj|i|��S)Nzrecvmsg() method)rr�recvmsgr&rrr	r?�s
zTransportSocket.recvmsgcOs|�d�|jj|i|��S)Nzrecvfrom() method)rr�recvfromr&rrr	r@�s
zTransportSocket.recvfromcOs|�d�|jj|i|��S)Nz
recv() method)rr�recvr&rrr	rA�s
zTransportSocket.recvcCs|dkrdStd��dS)Nrz<settimeout(): only 0 timeout is allowed on transport sockets��
ValueError)r�valuerrr	�
settimeout�s
�zTransportSocket.settimeoutcCsdS)Nrrrrrr	�
gettimeout�szTransportSocket.gettimeoutcCs|sdStd��dS)Nz3setblocking(): transport sockets cannot be blockingrB)r�flagrrr	�setblocking�s
�zTransportSocket.setblockingcCs|�d�|j��S�Nzcontext manager protocol)rr�	__enter__rrrr	rJ�s
zTransportSocket.__enter__cGs|�d�|jj|�SrI)rr�__exit__)r�errrrr	rK�s
zTransportSocket.__exit__N)3�__name__�
__module__�__qualname__�__doc__�	__slots__rr
r�propertyrrrrr rr!r"r#r%r)rrr*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r>r?r@rArErFrHrJrKrrrr	rsb


r)rrrrrrr	�<module>s

Zerion Mini Shell 1.0