AlkantarClanX12

Your IP : 18.119.124.52


Current Path : /opt/alt/python35/lib64/python3.5/multiprocessing/dummy/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/multiprocessing/dummy/__pycache__/connection.cpython-35.pyc



��Yf/�@ssdddgZddlmZdgZGdd�de�Zdd�Zdd	d�ZGd
d�de�ZdS)�Client�Listener�Pipe�)�QueueNc@sgeZdZddddd�Zdd�Zdd�Zed	d
��Zdd�Zd
d�Z	dS)rN�cCst|�|_dS)N)r�_backlog_queue)�self�addressZfamilyZbacklog�r
�E/opt/alt/python35/lib64/python3.5/multiprocessing/dummy/connection.py�__init__szListener.__init__cCst|jj��S)N)�
Connectionr�get)rr
r
r�acceptszListener.acceptcCs
d|_dS)N)r)rr
r
r�closeszListener.closecCs|jS)N)r)rr
r
r�<lambda>szListener.<lambda>cCs|S)Nr
)rr
r
r�	__enter__szListener.__enter__cCs|j�dS)N)r)r�exc_type�	exc_value�exc_tbr
r
r�__exit__"szListener.__exit__)
�__name__�
__module__�__qualname__rrr�propertyr	rrr
r
r
rrscCs3t�t�}}|j||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@sOeZdZdd�Zddd�Zdd�Zdd	�Zd
d�ZdS)
r
cCs<||_||_|j|_|_|j|_|_dS)N)rrr�sendZ
send_bytesrZrecvZ
recv_bytes)rrrr
r
rr3s		zConnection.__init__gc	Csc|jj�dkrdS|dkr)dS|jj�|jjj|�WdQRX|jj�dkS)NrTgF)rZqsizeZ	not_empty�wait)rZtimeoutr
r
r�poll9s
zConnection.pollcCsdS)Nr
)rr
r
rrBszConnection.closecCs|S)Nr
)rr
r
rrEszConnection.__enter__cCs|j�dS)N)r)rrrrr
r
rrHszConnection.__exit__N)rrrrr"rrrr
r
r
rr
1s
	r
)	�__all__ZqueuerZfamilies�objectrrrr
r
r
r
r�<module>
s