Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/python39/lib64/python3.9/asyncio/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python39/lib64/python3.9/asyncio/__pycache__/protocols.cpython-39.pyc
a

XC?h-�@sbdZdZGdd�d�ZGdd�de�ZGdd�de�ZGdd	�d	e�ZGd
d�de�Zdd
�ZdS)zAbstract Protocol base classes.)�BaseProtocol�Protocol�DatagramProtocol�SubprocessProtocol�BufferedProtocolc@s4eZdZdZdZdd�Zdd�Zdd�Zd	d
�ZdS)raCommon 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
    �cCsdS)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)�selfZ	transportrr�6/opt/alt/python39/lib64/python3.9/asyncio/protocols.py�connection_madeszBaseProtocol.connection_madecCsdS)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�excrrr�connection_lostszBaseProtocol.connection_lostcCsdS)aCalled 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�rrrr�
pause_writing%szBaseProtocol.pause_writingcCsdS)zvCalled when the transport's buffer drains below the low-water mark.

        See pause_writing() for details.
        Nrr
rrr�resume_writing;szBaseProtocol.resume_writingN)	�__name__�
__module__�__qualname__�__doc__�	__slots__r	rrrrrrrr	s	rc@s$eZdZdZdZdd�Zdd�ZdS)ranInterface for stream protocol.

    The user should implement this interface.  They can inherit from
    this class but don't need to.  The implementations here do
    nothing (they don't raise exceptions).

    When the user wants to requests a transport, they pass a protocol
    factory to a utility function (e.g., EventLoop.create_connection()).

    When the connection is made successfully, connection_made() is
    called with a suitable transport object.  Then data_received()
    will be called 0 or more times with data (bytes) received from the
    transport; finally, connection_lost() will be called exactly once
    with either an exception object or None as an argument.

    State machine of calls:

      start -> CM [-> DR*] [-> ER?] -> CL -> end

    * CM: connection_made()
    * DR: data_received()
    * ER: eof_received()
    * CL: connection_lost()
    rcCsdS)zTCalled when some data is received.

        The argument is a bytes object.
        Nr)r�datarrr�
data_received^szProtocol.data_receivedcCsdS�z�Called when the other end calls write_eof() or equivalent.

        If this returns a false value (including None), the transport
        will close itself.  If it returns a true value, closing the
        transport is up to the protocol.
        Nrr
rrr�eof_receiveddszProtocol.eof_receivedN)rrrrrrrrrrrrBsrc@s,eZdZdZdZdd�Zdd�Zdd�Zd	S)
ra:Interface for stream protocol with manual buffer control.

    Event methods, such as `create_server` and `create_connection`,
    accept factories that return protocols that implement this interface.

    The idea of BufferedProtocol is that it allows to manually allocate
    and control the receive buffer.  Event loops can then use the buffer
    provided by the protocol to avoid unnecessary data copies.  This
    can result in noticeable performance improvement for protocols that
    receive big amounts of data.  Sophisticated protocols can allocate
    the buffer only once at creation time.

    State machine of calls:

      start -> CM [-> GB [-> BU?]]* [-> ER?] -> CL -> end

    * CM: connection_made()
    * GB: get_buffer()
    * BU: buffer_updated()
    * ER: eof_received()
    * CL: connection_lost()
    rcCsdS)aPCalled to allocate a new receive buffer.

        *sizehint* is a recommended minimal size for the returned
        buffer.  When set to -1, the buffer size can be arbitrary.

        Must return an object that implements the
        :ref:`buffer protocol <bufferobjects>`.
        It is an error to return a zero-sized buffer.
        Nr)r�sizehintrrr�
get_buffer�szBufferedProtocol.get_buffercCsdS)z�Called when the buffer was updated with the received data.

        *nbytes* is the total number of bytes that were written to
        the buffer.
        Nr)r�nbytesrrr�buffer_updated�szBufferedProtocol.buffer_updatedcCsdSrrr
rrrr�szBufferedProtocol.eof_receivedN)rrrrrrrrrrrrrms
rc@s$eZdZdZdZdd�Zdd�ZdS)rz Interface for datagram protocol.rcCsdS)z&Called when some datagram is received.Nr)rrZaddrrrr�datagram_received�sz"DatagramProtocol.datagram_receivedcCsdS)z~Called when a send or receive operation raises an OSError.

        (Other than BlockingIOError or InterruptedError.)
        Nrr
rrr�error_received�szDatagramProtocol.error_receivedN)rrrrrrrrrrrr�src@s,eZdZdZdZdd�Zdd�Zdd�Zd	S)
rz,Interface for protocol for subprocess calls.rcCsdS)z�Called when the subprocess writes data into stdout/stderr pipe.

        fd is int file descriptor.
        data is bytes object.
        Nr)r�fdrrrr�pipe_data_received�sz%SubprocessProtocol.pipe_data_receivedcCsdS)z�Called when a file descriptor associated with the child process is
        closed.

        fd is the int file descriptor that was closed.
        Nr)rrrrrr�pipe_connection_lost�sz'SubprocessProtocol.pipe_connection_lostcCsdS)z"Called when subprocess has exited.Nrr
rrr�process_exited�sz!SubprocessProtocol.process_exitedN)rrrrrr r!r"rrrrr�s
rcCs�t|�}|r�|�|�}t|�}|s*td��||krL||d|�<|�|�dS|d|�|d|�<|�|�||d�}t|�}qdS)Nz%get_buffer() returned an empty buffer)�lenr�RuntimeErrorr)�protorZdata_lenZbufZbuf_lenrrr�_feed_data_to_buffered_proto�s


r&N)r�__all__rrrrrr&rrrr�<module>s9+5
Name
Size
Permissions
Options
__init__.cpython-39.opt-1.pyc
0.775 KB
-rw-r--r--
__init__.cpython-39.opt-2.pyc
0.721 KB
-rw-r--r--
__init__.cpython-39.pyc
0.775 KB
-rw-r--r--
__main__.cpython-39.opt-1.pyc
3.149 KB
-rw-r--r--
__main__.cpython-39.opt-2.pyc
3.149 KB
-rw-r--r--
__main__.cpython-39.pyc
3.149 KB
-rw-r--r--
base_events.cpython-39.opt-1.pyc
50.966 KB
-rw-r--r--
base_events.cpython-39.opt-2.pyc
42.148 KB
-rw-r--r--
base_events.cpython-39.pyc
51.087 KB
-rw-r--r--
base_futures.cpython-39.opt-1.pyc
1.878 KB
-rw-r--r--
base_futures.cpython-39.opt-2.pyc
1.63 KB
-rw-r--r--
base_futures.cpython-39.pyc
1.878 KB
-rw-r--r--
base_subprocess.cpython-39.opt-1.pyc
9.136 KB
-rw-r--r--
base_subprocess.cpython-39.opt-2.pyc
9.038 KB
-rw-r--r--
base_subprocess.cpython-39.pyc
9.204 KB
-rw-r--r--
base_tasks.cpython-39.opt-1.pyc
1.913 KB
-rw-r--r--
base_tasks.cpython-39.opt-2.pyc
1.913 KB
-rw-r--r--
base_tasks.cpython-39.pyc
1.913 KB
-rw-r--r--
constants.cpython-39.opt-1.pyc
0.582 KB
-rw-r--r--
constants.cpython-39.opt-2.pyc
0.582 KB
-rw-r--r--
constants.cpython-39.pyc
0.582 KB
-rw-r--r--
coroutines.cpython-39.opt-1.pyc
6.434 KB
-rw-r--r--
coroutines.cpython-39.opt-2.pyc
6.207 KB
-rw-r--r--
coroutines.cpython-39.pyc
6.496 KB
-rw-r--r--
events.cpython-39.opt-1.pyc
27.433 KB
-rw-r--r--
events.cpython-39.opt-2.pyc
18.549 KB
-rw-r--r--
events.cpython-39.pyc
27.513 KB
-rw-r--r--
exceptions.cpython-39.opt-1.pyc
2.508 KB
-rw-r--r--
exceptions.cpython-39.opt-2.pyc
1.879 KB
-rw-r--r--
exceptions.cpython-39.pyc
2.508 KB
-rw-r--r--
format_helpers.cpython-39.opt-1.pyc
2.284 KB
-rw-r--r--
format_helpers.cpython-39.opt-2.pyc
2.046 KB
-rw-r--r--
format_helpers.cpython-39.pyc
2.284 KB
-rw-r--r--
futures.cpython-39.opt-1.pyc
11.367 KB
-rw-r--r--
futures.cpython-39.opt-2.pyc
7.943 KB
-rw-r--r--
futures.cpython-39.pyc
11.515 KB
-rw-r--r--
locks.cpython-39.opt-1.pyc
14.14 KB
-rw-r--r--
locks.cpython-39.opt-2.pyc
8.049 KB
-rw-r--r--
locks.cpython-39.pyc
14.14 KB
-rw-r--r--
log.cpython-39.opt-1.pyc
0.235 KB
-rw-r--r--
log.cpython-39.opt-2.pyc
0.197 KB
-rw-r--r--
log.cpython-39.pyc
0.235 KB
-rw-r--r--
proactor_events.cpython-39.opt-1.pyc
23.632 KB
-rw-r--r--
proactor_events.cpython-39.opt-2.pyc
23.241 KB
-rw-r--r--
proactor_events.cpython-39.pyc
23.856 KB
-rw-r--r--
protocols.cpython-39.opt-1.pyc
8.252 KB
-rw-r--r--
protocols.cpython-39.opt-2.pyc
3.291 KB
-rw-r--r--
protocols.cpython-39.pyc
8.252 KB
-rw-r--r--
queues.cpython-39.opt-1.pyc
8.28 KB
-rw-r--r--
queues.cpython-39.opt-2.pyc
5.664 KB
-rw-r--r--
queues.cpython-39.pyc
8.28 KB
-rw-r--r--
runners.cpython-39.opt-1.pyc
2.17 KB
-rw-r--r--
runners.cpython-39.opt-2.pyc
1.504 KB
-rw-r--r--
runners.cpython-39.pyc
2.17 KB
-rw-r--r--
selector_events.cpython-39.opt-1.pyc
28.991 KB
-rw-r--r--
selector_events.cpython-39.opt-2.pyc
27.384 KB
-rw-r--r--
selector_events.cpython-39.pyc
29.034 KB
-rw-r--r--
sslproto.cpython-39.opt-1.pyc
21.228 KB
-rw-r--r--
sslproto.cpython-39.opt-2.pyc
14.439 KB
-rw-r--r--
sslproto.cpython-39.pyc
21.388 KB
-rw-r--r--
staggered.cpython-39.opt-1.pyc
3.928 KB
-rw-r--r--
staggered.cpython-39.opt-2.pyc
1.845 KB
-rw-r--r--
staggered.cpython-39.pyc
4.077 KB
-rw-r--r--
streams.cpython-39.opt-1.pyc
19.896 KB
-rw-r--r--
streams.cpython-39.opt-2.pyc
14.141 KB
-rw-r--r--
streams.cpython-39.pyc
20.118 KB
-rw-r--r--
subprocess.cpython-39.opt-1.pyc
7.164 KB
-rw-r--r--
subprocess.cpython-39.opt-2.pyc
7.039 KB
-rw-r--r--
subprocess.cpython-39.pyc
7.178 KB
-rw-r--r--
tasks.cpython-39.opt-1.pyc
23.693 KB
-rw-r--r--
tasks.cpython-39.opt-2.pyc
16.612 KB
-rw-r--r--
tasks.cpython-39.pyc
23.732 KB
-rw-r--r--
threads.cpython-39.opt-1.pyc
0.97 KB
-rw-r--r--
threads.cpython-39.opt-2.pyc
0.515 KB
-rw-r--r--
threads.cpython-39.pyc
0.97 KB
-rw-r--r--
transports.cpython-39.opt-1.pyc
12.241 KB
-rw-r--r--
transports.cpython-39.opt-2.pyc
6.821 KB
-rw-r--r--
transports.cpython-39.pyc
12.255 KB
-rw-r--r--
trsock.cpython-39.opt-1.pyc
8.383 KB
-rw-r--r--
trsock.cpython-39.opt-2.pyc
8.133 KB
-rw-r--r--
trsock.cpython-39.pyc
8.383 KB
-rw-r--r--
unix_events.cpython-39.opt-1.pyc
40.761 KB
-rw-r--r--
unix_events.cpython-39.opt-2.pyc
35.66 KB
-rw-r--r--
unix_events.cpython-39.pyc
41.073 KB
-rw-r--r--
windows_events.cpython-39.opt-1.pyc
24.15 KB
-rw-r--r--
windows_events.cpython-39.opt-2.pyc
23.069 KB
-rw-r--r--
windows_events.cpython-39.pyc
24.166 KB
-rw-r--r--
windows_utils.cpython-39.opt-1.pyc
4.346 KB
-rw-r--r--
windows_utils.cpython-39.opt-2.pyc
3.922 KB
-rw-r--r--
windows_utils.cpython-39.pyc
4.412 KB
-rw-r--r--