Your IP : 3.142.198.108
�
�Q�f- � �~ � d Z dZ G d� d� Z G d� de� Z G d� de� Z G d� d e� Z G d
� de� Zd� Zy
)zAbstract Protocol base classes.)�BaseProtocol�Protocol�DatagramProtocol�SubprocessProtocol�BufferedProtocolc �, � e Zd ZdZdZd� Zd� Zd� Zd� Zy)r a Common base class for protocol interfaces.
Usually user implements protocols that derived from BaseProtocol
like Protocol or ProcessProtocol.
The only case when BaseProtocol should be implemented directly is
write-only transport like write pipe
� c � � y)z�Called when a connection is made.
The argument is the transport representing the pipe connection.
To receive data, wait for data_received() calls.
When the connection is closed, connection_lost() is called.
Nr )�self� transports �8/opt/alt/python312/lib64/python3.12/asyncio/protocols.py�connection_madezBaseProtocol.connection_made � � � c � � y)z�Called when the connection is lost or closed.
The argument is an exception object or None (the latter
meaning a regular EOF is received or the connection was
aborted or closed).
Nr �r
�excs r �connection_lostzBaseProtocol.connection_lost r r c � � y)a Called when the transport's buffer goes over the high-water mark.
Pause and resume calls are paired -- pause_writing() is called
once when the buffer goes strictly over the high-water mark
(even if subsequent writes increases the buffer size even
more), and eventually resume_writing() is called once when the
buffer size reaches the low-water mark.
Note that if the buffer size equals the high-water mark,
pause_writing() is not called -- it must go strictly over.
Conversely, resume_writing() is called when the buffer size is
equal or lower than the low-water mark. These end conditions
are important to ensure that things go as expected when either
mark is zero.
NOTE: This is the only Protocol callback that is not called
through EventLoop.call_soon() -- if it were, it would have no
effect when it's most needed (when the app keeps writing
without yielding until pause_writing() is called).
Nr �r
s r �
pause_writingzBaseProtocol.pause_writing% r r c � � y)zvCalled when the transport's buffer drains below the low-water mark.
See pause_writing() for details.
Nr r s r �resume_writingzBaseProtocol.resume_writing; r r N) �__name__�
__module__�__qualname__�__doc__� __slots__r
r r r r r r r r s"