Your IP : 3.12.147.12


Current Path : /opt/alt/python310/lib64/python3.10/multiprocessing/dummy/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/multiprocessing/dummy/__pycache__/connection.cpython-310.pyc

o

6��f>�@sPgd�ZddlmZdgZGdd�de�Zdd�Zd
d	d
�ZGdd�de�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�G/opt/alt/python310/lib64/python3.10/multiprocessing/dummy/connection.py�__init__�zListener.__init__cCst|j���Sr)�
Connectionr�get�r	rrr�acceptrzListener.acceptcCs
d|_dSr�rrrrr�closes
zListener.closecCs|jSrrrrrrr
szListener.addresscC�|Srrrrrr�	__enter__!�zListener.__enter__cC�|��dSr�r�r	�exc_type�	exc_valueZexc_tbrrr�__exit__$�zListener.__exit__)NNr)
�__name__�
__module__�__qualname__r
rr�propertyr
rrrrrrrs

rcCs&t�t�}}|�||f�t||�Sr)r�putr)r
�_in�_outrrrr(s
rTcCs"t�t�}}t||�t||�fSr)rr)Zduplex�a�brrrr.src@s6eZdZdd�Zd
dd�Zdd�Zdd	�Zd
d�ZdS)rcCs,||_||_|j|_|_|j|_|_dSr)r%r$r#�sendZ
send_bytesrZrecvZ
recv_bytes)r	r$r%rrrr
5szConnection.__init__�cCsb|j��dkr	dS|dkrdS|jj�|jj�|�Wd�n1s%wY|j��dkS)NrTr)F)r$ZqsizeZ	not_empty�wait)r	Ztimeoutrrr�poll;s
�zConnection.pollcCsdSrrrrrrrDrzConnection.closecCrrrrrrrrGrzConnection.__enter__cCrrrrrrrrJrzConnection.__exit__N)r))rr r!r
r+rrrrrrrr3s
	r)T)	�__all__�queuerZfamilies�objectrrrrrrrr�<module>s	


?>