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/python313/lib64/python3.13/asyncio/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python313/lib64/python3.13/asyncio/__pycache__/protocols.cpython-313.pyc
�

�dYh-��~�SrSr"SS5r"SS\5r"SS\5r"SS	\5r"S
S\5rSrg
)zAbstract Protocol base classes.)�BaseProtocol�Protocol�DatagramProtocol�SubprocessProtocol�BufferedProtocolc�4�\rSrSrSrSrSrSrSrSr	Sr
g)	r�	z�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��g)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/python313/lib64/python3.13/asyncio/protocols.py�connection_made�BaseProtocol.connection_made���c��g)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_lost�BaseProtocol.connection_lostrrc��g)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	�rs r
�
pause_writing�BaseProtocol.pause_writing%rrc��g)zfCalled when the transport's buffer drains below the low-water mark.

See pause_writing() for details.
Nr	rs r
�resume_writing�BaseProtocol.resume_writing;rrN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�	__slots__rrrr�__static_attributes__r	rr
rr	s"����I����,rrc�(�\rSrSrSrSrSrSrSrg)r�Ba*Interface 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()
r	c��g)zDCalled when some data is received.

The argument is a bytes object.
Nr	)r�datas  r
�
data_received�Protocol.data_received^rrc��g�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.
Nr	rs r
�eof_received�Protocol.eof_receiveddrrN)	rrr r!r"r#r)r-r$r	rr
rrBs���2�I��rrc�.�\rSrSrSrSrSrSrSrSr	g)r�ma�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()
r	c��g)a Called 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�sizehints  r
�
get_buffer�BufferedProtocol.get_buffer�rrc��g)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�nbytess  r
�buffer_updated�BufferedProtocol.buffer_updated�rrc��gr,r	rs r
r-�BufferedProtocol.eof_received�rrN)
rrr r!r"r#r3r7r-r$r	rr
rrms���.�I�	��rrc�(�\rSrSrSrSrSrSrSrg)r�z Interface for datagram protocol.r	c��g)z&Called when some datagram is received.Nr	)rr(�addrs   r
�datagram_received�"DatagramProtocol.datagram_received�rrc��g)znCalled when a send or receive operation raises an OSError.

(Other than BlockingIOError or InterruptedError.)
Nr	rs  r
�error_received�DatagramProtocol.error_received�rrN)	rrr r!r"r#r?rBr$r	rr
rr�s��*��I�5�rrc�.�\rSrSrSrSrSrSrSrSr	g)r�z,Interface for protocol for subprocess calls.r	c��g)zrCalled when the subprocess writes data into stdout/stderr pipe.

fd is int file descriptor.
data is bytes object.
Nr	)r�fdr(s   r
�pipe_data_received�%SubprocessProtocol.pipe_data_received�rrc��g)z{Called when a file descriptor associated with the child process is
closed.

fd is the int file descriptor that was closed.
Nr	)rrGrs   r
�pipe_connection_lost�'SubprocessProtocol.pipe_connection_lost�rrc��g)z"Called when subprocess has exited.Nr	rs r
�process_exited�!SubprocessProtocol.process_exited�rrN)
rrr r!r"r#rHrKrNr$r	rr
rr�s��6��I���1rrc��[U5nU(a{URU5n[U5nU(d[S5eXB:�aXSU&URU5 gUSUUSU&URU5 XSn[U5nU(aMzgg)Nz%get_buffer() returned an empty buffer)�lenr3�RuntimeErrorr7)�protor(�data_len�buf�buf_lens     r
�_feed_data_to_buffered_protorW�s����4�y�H�
����x�(���c�(����F�G�G���!�	��N�� � ��*�� ��'�N�C���M�� � ��)���>�D��4�y�H��(rN)r"�__all__rrrrrrWr	rr
�<module>rYsQ��%���6�6�r(�|�(�V2�|�2�j�|��1��1�.!r
Name
Size
Permissions
Options
__init__.cpython-313.opt-1.pyc
1.44 KB
-rw-r--r--
__init__.cpython-313.opt-2.pyc
1.385 KB
-rw-r--r--
__init__.cpython-313.pyc
1.44 KB
-rw-r--r--
__main__.cpython-313.opt-1.pyc
8.537 KB
-rw-r--r--
__main__.cpython-313.opt-2.pyc
8.537 KB
-rw-r--r--
__main__.cpython-313.pyc
8.537 KB
-rw-r--r--
base_events.cpython-313.opt-1.pyc
87.48 KB
-rw-r--r--
base_events.cpython-313.opt-2.pyc
78.463 KB
-rw-r--r--
base_events.cpython-313.pyc
87.53 KB
-rw-r--r--
base_futures.cpython-313.opt-1.pyc
3.066 KB
-rw-r--r--
base_futures.cpython-313.opt-2.pyc
2.835 KB
-rw-r--r--
base_futures.cpython-313.pyc
3.066 KB
-rw-r--r--
base_subprocess.cpython-313.opt-1.pyc
16.722 KB
-rw-r--r--
base_subprocess.cpython-313.opt-2.pyc
16.632 KB
-rw-r--r--
base_subprocess.cpython-313.pyc
16.938 KB
-rw-r--r--
base_tasks.cpython-313.opt-1.pyc
4.08 KB
-rw-r--r--
base_tasks.cpython-313.opt-2.pyc
4.08 KB
-rw-r--r--
base_tasks.cpython-313.pyc
4.08 KB
-rw-r--r--
constants.cpython-313.opt-1.pyc
0.999 KB
-rw-r--r--
constants.cpython-313.opt-2.pyc
0.999 KB
-rw-r--r--
constants.cpython-313.pyc
0.999 KB
-rw-r--r--
coroutines.cpython-313.opt-1.pyc
3.883 KB
-rw-r--r--
coroutines.cpython-313.opt-2.pyc
3.787 KB
-rw-r--r--
coroutines.cpython-313.pyc
3.939 KB
-rw-r--r--
events.cpython-313.opt-1.pyc
36.082 KB
-rw-r--r--
events.cpython-313.opt-2.pyc
27.49 KB
-rw-r--r--
events.cpython-313.pyc
36.082 KB
-rw-r--r--
exceptions.cpython-313.opt-1.pyc
3.152 KB
-rw-r--r--
exceptions.cpython-313.opt-2.pyc
2.538 KB
-rw-r--r--
exceptions.cpython-313.pyc
3.152 KB
-rw-r--r--
format_helpers.cpython-313.opt-1.pyc
4.133 KB
-rw-r--r--
format_helpers.cpython-313.opt-2.pyc
3.778 KB
-rw-r--r--
format_helpers.cpython-313.pyc
4.133 KB
-rw-r--r--
futures.cpython-313.opt-1.pyc
16.583 KB
-rw-r--r--
futures.cpython-313.opt-2.pyc
13.525 KB
-rw-r--r--
futures.cpython-313.pyc
16.984 KB
-rw-r--r--
locks.cpython-313.opt-1.pyc
27.482 KB
-rw-r--r--
locks.cpython-313.opt-2.pyc
21.014 KB
-rw-r--r--
locks.cpython-313.pyc
27.482 KB
-rw-r--r--
log.cpython-313.opt-1.pyc
0.288 KB
-rw-r--r--
log.cpython-313.opt-2.pyc
0.251 KB
-rw-r--r--
log.cpython-313.pyc
0.288 KB
-rw-r--r--
mixins.cpython-313.opt-1.pyc
1.088 KB
-rw-r--r--
mixins.cpython-313.opt-2.pyc
1.055 KB
-rw-r--r--
mixins.cpython-313.pyc
1.088 KB
-rw-r--r--
proactor_events.cpython-313.opt-1.pyc
44.28 KB
-rw-r--r--
proactor_events.cpython-313.opt-2.pyc
43.886 KB
-rw-r--r--
proactor_events.cpython-313.pyc
44.997 KB
-rw-r--r--
protocols.cpython-313.opt-1.pyc
8.223 KB
-rw-r--r--
protocols.cpython-313.opt-2.pyc
3.788 KB
-rw-r--r--
protocols.cpython-313.pyc
8.223 KB
-rw-r--r--
queues.cpython-313.opt-1.pyc
14.438 KB
-rw-r--r--
queues.cpython-313.opt-2.pyc
11.194 KB
-rw-r--r--
queues.cpython-313.pyc
14.438 KB
-rw-r--r--
runners.cpython-313.opt-1.pyc
9.904 KB
-rw-r--r--
runners.cpython-313.opt-2.pyc
8.167 KB
-rw-r--r--
runners.cpython-313.pyc
9.904 KB
-rw-r--r--
selector_events.cpython-313.opt-1.pyc
62.729 KB
-rw-r--r--
selector_events.cpython-313.opt-2.pyc
60.853 KB
-rw-r--r--
selector_events.cpython-313.pyc
62.884 KB
-rw-r--r--
sslproto.cpython-313.opt-1.pyc
40.744 KB
-rw-r--r--
sslproto.cpython-313.opt-2.pyc
37.317 KB
-rw-r--r--
sslproto.cpython-313.pyc
40.848 KB
-rw-r--r--
staggered.cpython-313.opt-1.pyc
6.23 KB
-rw-r--r--
staggered.cpython-313.opt-2.pyc
4.289 KB
-rw-r--r--
staggered.cpython-313.pyc
6.396 KB
-rw-r--r--
streams.cpython-313.opt-1.pyc
33.016 KB
-rw-r--r--
streams.cpython-313.opt-2.pyc
27.511 KB
-rw-r--r--
streams.cpython-313.pyc
33.466 KB
-rw-r--r--
subprocess.cpython-313.opt-1.pyc
11.997 KB
-rw-r--r--
subprocess.cpython-313.opt-2.pyc
11.871 KB
-rw-r--r--
subprocess.cpython-313.pyc
12.021 KB
-rw-r--r--
taskgroups.cpython-313.opt-1.pyc
8.894 KB
-rw-r--r--
taskgroups.cpython-313.opt-2.pyc
8.273 KB
-rw-r--r--
taskgroups.cpython-313.pyc
9.011 KB
-rw-r--r--
tasks.cpython-313.opt-1.pyc
42.219 KB
-rw-r--r--
tasks.cpython-313.opt-2.pyc
32.586 KB
-rw-r--r--
tasks.cpython-313.pyc
42.465 KB
-rw-r--r--
threads.cpython-313.opt-1.pyc
1.226 KB
-rw-r--r--
threads.cpython-313.opt-2.pyc
0.795 KB
-rw-r--r--
threads.cpython-313.pyc
1.226 KB
-rw-r--r--
timeouts.cpython-313.opt-1.pyc
8.335 KB
-rw-r--r--
timeouts.cpython-313.opt-2.pyc
6.852 KB
-rw-r--r--
timeouts.cpython-313.pyc
8.546 KB
-rw-r--r--
transports.cpython-313.opt-1.pyc
13.388 KB
-rw-r--r--
transports.cpython-313.opt-2.pyc
8.52 KB
-rw-r--r--
transports.cpython-313.pyc
13.409 KB
-rw-r--r--
trsock.cpython-313.opt-1.pyc
5.047 KB
-rw-r--r--
trsock.cpython-313.opt-2.pyc
4.81 KB
-rw-r--r--
trsock.cpython-313.pyc
5.047 KB
-rw-r--r--
unix_events.cpython-313.opt-1.pyc
67.951 KB
-rw-r--r--
unix_events.cpython-313.opt-2.pyc
63.316 KB
-rw-r--r--
unix_events.cpython-313.pyc
68.714 KB
-rw-r--r--
windows_events.cpython-313.opt-1.pyc
41.172 KB
-rw-r--r--
windows_events.cpython-313.opt-2.pyc
40.164 KB
-rw-r--r--
windows_events.cpython-313.pyc
41.224 KB
-rw-r--r--
windows_utils.cpython-313.opt-1.pyc
7.128 KB
-rw-r--r--
windows_utils.cpython-313.opt-2.pyc
6.715 KB
-rw-r--r--
windows_utils.cpython-313.pyc
7.295 KB
-rw-r--r--