Your IP : 3.147.126.199


Current Path : /opt/alt/python310/lib64/python3.10/asyncio/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/asyncio/__pycache__/transports.cpython-310.opt-2.pyc

o

6��f�)�@sz	dZGdd�d�ZGdd�de�ZGdd�de�ZGdd�dee�ZGd	d
�d
e�ZGdd�de�ZGd
d�de�ZdS))�
BaseTransport�
ReadTransport�WriteTransport�	Transport�DatagramTransport�SubprocessTransportc@sFeZdZ	dZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
d�Z	dS)r��_extraNcCs|duri}||_dS�Nr)�self�extra�r�9/opt/alt/python310/lib64/python3.10/asyncio/transports.py�__init__s
zBaseTransport.__init__cCs	|j�||�Sr	)r�get)r
�name�defaultrrr
�get_extra_infoszBaseTransport.get_extra_infocC�	t�r	��NotImplementedError�r
rrr
�
is_closing�zBaseTransport.is_closingcCrr	rrrrr
�close�zBaseTransport.closecCrr	r)r
�protocolrrr
�set_protocol%rzBaseTransport.set_protocolcCrr	rrrrr
�get_protocol)rzBaseTransport.get_protocolr	)
�__name__�
__module__�__qualname__�	__slots__rrrrrrrrrr
r	s


rc@s*eZdZ	dZdd�Zdd�Zdd�ZdS)	rrcCrr	rrrrr
�
is_reading3rzReadTransport.is_readingcCrr	rrrrr
�
pause_reading7�zReadTransport.pause_readingcCrr	rrrrr
�resume_reading?r$zReadTransport.resume_readingN)rrr r!r"r#r%rrrr
r.src@sTeZdZ	dZddd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�ZdS)rrNcCrr	r�r
�high�lowrrr
�set_write_buffer_limitsMsz&WriteTransport.set_write_buffer_limitscCrr	rrrrr
�get_write_buffer_sizebrz$WriteTransport.get_write_buffer_sizecCrr	rrrrr
�get_write_buffer_limitsfsz&WriteTransport.get_write_buffer_limitscCrr	r)r
�datarrr
�writelr$zWriteTransport.writecCs	d�|�}|�|�dS)N�)�joinr-)r
Zlist_of_datar,rrr
�
writelinests
zWriteTransport.writelinescCrr	rrrrr
�	write_eof}�zWriteTransport.write_eofcCrr	rrrrr
�
can_write_eof�rzWriteTransport.can_write_eofcCrr	rrrrr
�abort�r2zWriteTransport.abort�NN)rrr r!r)r*r+r-r0r1r3r4rrrr
rHs
		rc@seZdZ	dZdS)rrN)rrr r!rrrr
r�src@s$eZdZ	dZddd�Zdd�ZdS)rrNcCrr	r)r
r,Zaddrrrr
�sendto�rzDatagramTransport.sendtocCrr	rrrrr
r4�r2zDatagramTransport.abortr	)rrr r!r6r4rrrr
r�s


rc@s@eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dS)rrcCrr	rrrrr
�get_pid�rzSubprocessTransport.get_pidcCrr	rrrrr
�get_returncode�r$z"SubprocessTransport.get_returncodecCrr	r)r
�fdrrr
�get_pipe_transport�rz&SubprocessTransport.get_pipe_transportcCrr	r)r
�signalrrr
�send_signal�r$zSubprocessTransport.send_signalcCrr	rrrrr
�	terminate�szSubprocessTransport.terminatecCrr	rrrrr
�kill�szSubprocessTransport.killN)
rrr r!r7r8r:r<r=r>rrrr
r�srcsXeZdZ	dZd�fdd�	Zdd�Zdd�Zd	d
�Zddd�Zdd
d�Z	dd�Z
�ZS)�_FlowControlMixin)�_loop�_protocol_paused�_high_water�
_low_waterNcs$t��|�||_d|_|��dS)NF)�superrr@rA�_set_write_buffer_limits)r
rZloop��	__class__rr
rsz_FlowControlMixin.__init__c
Cs�|��}||jkrdS|jsBd|_z|j��WdSttfy#�tyA}z|j�	d|||jd��WYd}~dSd}~wwdS)NTzprotocol.pause_writing() failed��messageZ	exceptionZ	transportr)
r*rBrA�	_protocolZ
pause_writing�
SystemExit�KeyboardInterrupt�
BaseExceptionr@�call_exception_handler)r
�size�excrrr
�_maybe_pause_protocols&
����z'_FlowControlMixin._maybe_pause_protocolc
Cs�|jr>|��|jkr@d|_z|j��WdSttfy�ty=}z|j�	d|||jd��WYd}~dSd}~wwdSdS)NFz protocol.resume_writing() failedrH)
rAr*rCrJZresume_writingrKrLrMr@rN)r
rPrrr
�_maybe_resume_protocol's$����z(_FlowControlMixin._maybe_resume_protocolcCs|j|jfSr	)rCrBrrrr
r+7sz)_FlowControlMixin.get_write_buffer_limitscCsj|dur|durd}nd|}|dur|d}||kr!dks-ntd|�d|�d���||_||_dS)Ni��zhigh (z) must be >= low (z) must be >= 0)�
ValueErrorrBrCr&rrr
rE:s�
z*_FlowControlMixin._set_write_buffer_limitscCs|j||d�|��dS)N)r'r()rErQr&rrr
r)Jsz)_FlowControlMixin.set_write_buffer_limitscCst�r	rrrrr
r*Nsz'_FlowControlMixin.get_write_buffer_sizer5)rrr r!rrQrRr+rEr)r*�
__classcell__rrrFr
r?�s

r?N)�__all__rrrrrrr?rrrr
�<module>s%L6

?>