AlkantarClanX12

Your IP : 3.148.108.192


Current Path : /opt/alt/python37/lib64/python3.7/multiprocessing/dummy/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/multiprocessing/dummy/__pycache__/connection.cpython-37.pyc

B

� f>�@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
�E/opt/alt/python37/lib64/python3.7/multiprocessing/dummy/connection.py�__init__szListener.__init__cCst|j���S)N)�
Connectionr�get)rr
r
r�acceptszListener.acceptcCs
d|_dS)N)r)rr
r
r�closeszListener.closecCs|jS)N)r)rr
r
rr	szListener.addresscCs|S)Nr
)rr
r
r�	__enter__!szListener.__enter__cCs|��dS)N)r)r�exc_type�	exc_value�exc_tbr
r
r�__exit__$szListener.__exit__)NNr)
�__name__�
__module__�__qualname__rrr�propertyr	rrr
r
r
rrs
cCs&t�t�}}|�||f�t||�S)N)r�putr
)r	�_in�_outr
r
rr(sTcCs"t�t�}}t||�t||�fS)N)rr
)Zduplex�a�br
r
rr.sc@s6eZdZdd�Zd
dd�Zdd�Zdd	�Zd
d�ZdS)r
cCs,||_||_|j|_|_|j|_|_dS)N)rrr�sendZ
send_bytesrZrecvZ
recv_bytes)rrrr
r
rr5szConnection.__init__�c	CsN|j��dkrdS|dkrdS|jj�|jj�|�WdQRX|j��dkS)NrTgF)rZqsizeZ	not_empty�wait)rZtimeoutr
r
r�poll;s
zConnection.pollcCsdS)Nr
)rr
r
rrDszConnection.closecCs|S)Nr
)rr
r
rrGszConnection.__enter__cCs|��dS)N)r)rrrrr
r
rrJszConnection.__exit__N)r )rrrrr"rrrr
r
r
rr
3s

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