
Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­
<!DOCTYPE html>
<html>
U
    ¡ê,aô  ã                   @   s"   d dl Z d dlZG dd„ dƒZdS )é    Nc                   @   sˆ  e Zd ZdZdZejdœdd„Zdd„ Zedd	„ ƒZ	ed
d„ ƒZ
edd„ ƒZdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zd d!„ Zd"d#„ Zd$d%„ Zd&d'„ Zd(d)„ Zd*d+„ Zd,d-„ Zd.d/„ Zd0d1„ Zd2d3„ Zd4d5„ Zd6d7„ 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)Úsockc                 C   s
   || _ d S ©Nr   )Úselfr   © r   ú3/opt/alt/python38/lib64/python3.8/asyncio/trsock.pyÚ__init__   s    zTransportSocket.__init__c                 C   s   t jd|› d�t| d� d S )NzUsing 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)r   Zwhatr   r   r	   Ú_na   s
    
 üzTransportSocket._nac                 C   s   | j jS r   )r   Úfamily©r   r   r   r	   r      s    zTransportSocket.familyc                 C   s   | j jS r   )r   Útyper   r   r   r	   r      s    zTransportSocket.typec                 C   s   | j jS r   )r   Úprotor   r   r   r	   r   "   s    zTransportSocket.protoc                 C   s¨   d|   ¡ › d| j›d| j›d| j› �}|   ¡ dkržz|  ¡ }|rN|› d|› �}W n tjk
rf   Y nX z|  ¡ }|r„|› d|› �}W n tjk
rœ   Y nX |› d�S )	Nz<asyncio.TransportSocket fd=z	, family=z, type=z, proto=éÿÿÿÿz, laddr=z, raddr=ú>)Úfilenor   r   r   ÚgetsocknameÚsocketÚerrorÚgetpeername)r   ÚsZladdrZraddrr   r   r	   Ú__repr__&   s     $ÿzTransportSocket.__repr__c                 C   s   t dƒ‚d S )Nz/Cannot serialize asyncio.TransportSocket object)Ú	TypeErrorr   r   r   r	   Ú__getstate__=   s    zTransportSocket.__getstate__c                 C   s
   | j  ¡ S r   )r   r   r   r   r   r	   r   @   s    zTransportSocket.filenoc                 C   s
   | j  ¡ S r   )r   Údupr   r   r   r	   r   C   s    zTransportSocket.dupc                 C   s
   | j  ¡ S r   )r   Úget_inheritabler   r   r   r	   r    F   s    zTransportSocket.get_inheritablec                 C   s   | j  |¡ d S r   )r   Úshutdown)r   Zhowr   r   r	   r!   I   s    zTransportSocket.shutdownc                 O   s   | j j||ŽS r   )r   Ú
getsockopt©r   ÚargsÚkwargsr   r   r	   r"   N   s    zTransportSocket.getsockoptc                 O   s   | j j||Ž d S r   )r   Ú
setsockoptr#   r   r   r	   r&   Q   s    zTransportSocket.setsockoptc                 C   s
   | j  ¡ S r   )r   r   r   r   r   r	   r   T   s    zTransportSocket.getpeernamec                 C   s
   | j  ¡ S r   )r   r   r   r   r   r	   r   W   s    zTransportSocket.getsocknamec                 C   s
   | j  ¡ S r   )r   Úgetsockbynamer   r   r   r	   r'   Z   s    zTransportSocket.getsockbynamec                 C   s   |   d¡ | j ¡ S )Nzaccept() method)r   r   Úacceptr   r   r   r	   r(   ]   s    
zTransportSocket.acceptc                 O   s   |   d¡ | jj||ŽS )Nzconnect() method)r   r   Úconnectr#   r   r   r	   r)   a   s    
zTransportSocket.connectc                 O   s   |   d¡ | jj||ŽS )Nzconnect_ex() method)r   r   Ú
connect_exr#   r   r   r	   r*   e   s    
zTransportSocket.connect_exc                 O   s   |   d¡ | jj||ŽS )Nzbind() method)r   r   Úbindr#   r   r   r	   r+   i   s    
zTransportSocket.bindc                 O   s   |   d¡ | jj||ŽS )Nzioctl() method)r   r   Úioctlr#   r   r   r	   r,   m   s    
zTransportSocket.ioctlc                 O   s   |   d¡ | jj||ŽS )Nzlisten() method)r   r   Úlistenr#   r   r   r	   r-   q   s    
zTransportSocket.listenc                 C   s   |   d¡ | j ¡ S )Nzmakefile() method)r   r   Úmakefiler   r   r   r	   r.   u   s    
zTransportSocket.makefilec                 O   s   |   d¡ | jj||ŽS )Nzsendfile() method)r   r   Úsendfiler#   r   r   r	   r/   y   s    
zTransportSocket.sendfilec                 C   s   |   d¡ | j ¡ S )Nzclose() method)r   r   Úcloser   r   r   r	   r0   }   s    
zTransportSocket.closec                 C   s   |   d¡ | j ¡ S )Nzdetach() method)r   r   Údetachr   r   r   r	   r1   �   s    
zTransportSocket.detachc                 O   s   |   d¡ | jj||ŽS )Nzsendmsg_afalg() method)r   r   Úsendmsg_afalgr#   r   r   r	   r2   …   s    
zTransportSocket.sendmsg_afalgc                 O   s   |   d¡ | jj||ŽS )Nzsendmsg() method)r   r   Úsendmsgr#   r   r   r	   r3   ‰   s    
zTransportSocket.sendmsgc                 O   s   |   d¡ | jj||ŽS )Nzsendto() method)r   r   Úsendtor#   r   r   r	   r4   �   s    
zTransportSocket.sendtoc                 O   s   |   d¡ | jj||ŽS )Nzsend() method)r   r   Úsendr#   r   r   r	   r5   ‘   s    
zTransportSocket.sendc                 O   s   |   d¡ | jj||ŽS )Nzsendall() method)r   r   Úsendallr#   r   r   r	   r6   •   s    
zTransportSocket.sendallc                 O   s   |   d¡ | jj||ŽS )Nzset_inheritable() method)r   r   Úset_inheritabler#   r   r   r	   r7   ™   s    
zTransportSocket.set_inheritablec                 C   s   |   d¡ | j |¡S )Nzshare() method)r   r   Úshare)r   Z
process_idr   r   r	   r8   �   s    
zTransportSocket.sharec                 O   s   |   d¡ | jj||ŽS )Nzrecv_into() method)r   r   Ú	recv_intor#   r   r   r	   r9   ¡   s    
zTransportSocket.recv_intoc                 O   s   |   d¡ | jj||ŽS )Nzrecvfrom_into() method)r   r   Úrecvfrom_intor#   r   r   r	   r:   ¥   s    
zTransportSocket.recvfrom_intoc                 O   s   |   d¡ | jj||ŽS )Nzrecvmsg_into() method)r   r   Úrecvmsg_intor#   r   r   r	   r;   ©   s    
zTransportSocket.recvmsg_intoc                 O   s   |   d¡ | jj||ŽS )Nzrecvmsg() method)r   r   Úrecvmsgr#   r   r   r	   r<   ­   s    
zTransportSocket.recvmsgc                 O   s   |   d¡ | jj||ŽS )Nzrecvfrom() method)r   r   Úrecvfromr#   r   r   r	   r=   ±   s    
zTransportSocket.recvfromc                 O   s   |   d¡ | jj||ŽS )Nzrecv() method)r   r   Úrecvr#   r   r   r	   r>   µ   s    
zTransportSocket.recvc                 C   s   |dkrd S t dƒ‚d S )Nr   z<settimeout(): only 0 timeout is allowed on transport sockets©Ú
ValueError)r   Úvaluer   r   r	   Ú
settimeout¹   s
    ÿzTransportSocket.settimeoutc                 C   s   dS )Nr   r   r   r   r   r	   Ú
gettimeout¿   s    zTransportSocket.gettimeoutc                 C   s   |sd S t dƒ‚d S )Nz3setblocking(): transport sockets cannot be blockingr?   )r   Úflagr   r   r	   ÚsetblockingÂ   s
    ÿzTransportSocket.setblockingc                 C   s   |   d¡ | j ¡ S ©Nzcontext manager protocol)r   r   Ú	__enter__r   r   r   r	   rG   È   s    
zTransportSocket.__enter__c                 G   s   |   d¡ | jj|Ž S rF   )r   r   Ú__exit__)r   Úerrr   r   r	   rH   Ì   s    
zTransportSocket.__exit__N)3Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r   r
   r   Úpropertyr   r   r   r   r   r   r   r    r!   r"   r&   r   r   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   rB   rC   rE   rG   rH   r   r   r   r	   r      sb   


r   )r   r   r   r   r   r   r	   Ú<module>   s   