Your IP : 3.149.242.223


Current Path : /usr/lib64/python3.8/multiprocessing/dummy/__pycache__/
Upload File :
Current File : //usr/lib64/python3.8/multiprocessing/dummy/__pycache__/connection.cpython-38.pyc

U

e5d>�@sRdddgZddlmZdgZGdd�de�Zdd�Zdd	d�ZGd
d�de�ZdS)
�Client�Listener�Pipe�)�QueueNc@sBeZdZddd�Zdd�Zdd�Zed	d
��Zdd�Zd
d�Z	dS)rN�cCst|�|_dS�N)r�_backlog_queue)�self�addressZfamilyZbacklog�r�8/usr/lib64/python3.8/multiprocessing/dummy/connection.py�__init__szListener.__init__cCst|j���Sr)�
Connectionr�get�r	rrr�acceptszListener.acceptcCs
d|_dSr�rrrrr�closeszListener.closecCs|jSrrrrrrr
szListener.addresscCs|Srrrrrr�	__enter__!szListener.__enter__cCs|��dSr�r�r	�exc_type�	exc_valueZexc_tbrrr�__exit__$szListener.__exit__)NNr)
�__name__�
__module__�__qualname__r
rr�propertyr
rrrrrrrs

cCs&t�t�}}|�||f�t||�Sr)r�putr)r
�_in�_outrrrr(sTcCs"t�t�}}t||�t||�fSr)rr)Zduplex�a�brrrr.sc@s6eZdZdd�Zd
dd�Zdd�Zdd	�Zd
d�ZdS)rcCs,||_||_|j|_|_|j|_|_dSr)r rr�sendZ
send_bytesrZrecvZ
recv_bytes)r	rr rrrr
5szConnection.__init__�c	CsN|j��dkrdS|dkrdS|jj�|jj�|�W5QRX|j��dkS)NrTr$F)rZqsizeZ	not_empty�wait)r	Ztimeoutrrr�poll;s
zConnection.pollcCsdSrrrrrrrDszConnection.closecCs|SrrrrrrrGszConnection.__enter__cCs|��dSrrrrrrrJszConnection.__exit__N)r$)rrrr
r&rrrrrrrr3s

	r)T)	�__all__ZqueuerZfamilies�objectrrrrrrrr�<module>
s



?>