opt
/
alt
/
python310
/
lib64
/
python3.10
/
asyncio
/
__pycache__
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
__init__.cpython-310.opt-1.pyc
760 bytes
Rename
Delete
__init__.cpython-310.opt-2.pyc
708 bytes
Rename
Delete
__init__.cpython-310.pyc
760 bytes
Rename
Delete
__main__.cpython-310.opt-1.pyc
3.15 KB
Rename
Delete
__main__.cpython-310.opt-2.pyc
3.15 KB
Rename
Delete
__main__.cpython-310.pyc
3.15 KB
Rename
Delete
base_events.cpython-310.opt-1.pyc
50.55 KB
Rename
Delete
base_events.cpython-310.opt-2.pyc
42.20 KB
Rename
Delete
base_events.cpython-310.pyc
50.65 KB
Rename
Delete
base_futures.cpython-310.opt-1.pyc
1.88 KB
Rename
Delete
base_futures.cpython-310.opt-2.pyc
1.65 KB
Rename
Delete
base_futures.cpython-310.pyc
1.88 KB
Rename
Delete
base_subprocess.cpython-310.opt-1.pyc
9.12 KB
Rename
Delete
base_subprocess.cpython-310.opt-2.pyc
9.02 KB
Rename
Delete
base_subprocess.cpython-310.pyc
9.18 KB
Rename
Delete
base_tasks.cpython-310.opt-1.pyc
1.95 KB
Rename
Delete
base_tasks.cpython-310.opt-2.pyc
1.95 KB
Rename
Delete
base_tasks.cpython-310.pyc
1.95 KB
Rename
Delete
constants.cpython-310.opt-1.pyc
602 bytes
Rename
Delete
constants.cpython-310.opt-2.pyc
602 bytes
Rename
Delete
constants.cpython-310.pyc
602 bytes
Rename
Delete
coroutines.cpython-310.opt-1.pyc
6.42 KB
Rename
Delete
coroutines.cpython-310.opt-2.pyc
6.21 KB
Rename
Delete
coroutines.cpython-310.pyc
6.48 KB
Rename
Delete
events.cpython-310.opt-1.pyc
27.58 KB
Rename
Delete
events.cpython-310.opt-2.pyc
18.59 KB
Rename
Delete
events.cpython-310.pyc
27.66 KB
Rename
Delete
exceptions.cpython-310.opt-1.pyc
2.43 KB
Rename
Delete
exceptions.cpython-310.opt-2.pyc
1.82 KB
Rename
Delete
exceptions.cpython-310.pyc
2.43 KB
Rename
Delete
format_helpers.cpython-310.opt-1.pyc
2.30 KB
Rename
Delete
format_helpers.cpython-310.opt-2.pyc
2.07 KB
Rename
Delete
format_helpers.cpython-310.pyc
2.30 KB
Rename
Delete
futures.cpython-310.opt-1.pyc
11.48 KB
Rename
Delete
futures.cpython-310.opt-2.pyc
8.13 KB
Rename
Delete
futures.cpython-310.pyc
11.62 KB
Rename
Delete
locks.cpython-310.opt-1.pyc
13.86 KB
Rename
Delete
locks.cpython-310.opt-2.pyc
7.81 KB
Rename
Delete
locks.cpython-310.pyc
13.86 KB
Rename
Delete
log.cpython-310.opt-1.pyc
245 bytes
Rename
Delete
log.cpython-310.opt-2.pyc
210 bytes
Rename
Delete
log.cpython-310.pyc
245 bytes
Rename
Delete
mixins.cpython-310.opt-1.pyc
1.07 KB
Rename
Delete
mixins.cpython-310.opt-2.pyc
1.04 KB
Rename
Delete
mixins.cpython-310.pyc
1.07 KB
Rename
Delete
proactor_events.cpython-310.opt-1.pyc
23.92 KB
Rename
Delete
proactor_events.cpython-310.opt-2.pyc
23.55 KB
Rename
Delete
proactor_events.cpython-310.pyc
24.13 KB
Rename
Delete
protocols.cpython-310.opt-1.pyc
8.12 KB
Rename
Delete
protocols.cpython-310.opt-2.pyc
3.19 KB
Rename
Delete
protocols.cpython-310.pyc
8.12 KB
Rename
Delete
queues.cpython-310.opt-1.pyc
8.12 KB
Rename
Delete
queues.cpython-310.opt-2.pyc
5.57 KB
Rename
Delete
queues.cpython-310.pyc
8.12 KB
Rename
Delete
runners.cpython-310.opt-1.pyc
2.06 KB
Rename
Delete
runners.cpython-310.opt-2.pyc
1.40 KB
Rename
Delete
runners.cpython-310.pyc
2.06 KB
Rename
Delete
selector_events.cpython-310.opt-1.pyc
28.86 KB
Rename
Delete
selector_events.cpython-310.opt-2.pyc
27.29 KB
Rename
Delete
selector_events.cpython-310.pyc
28.90 KB
Rename
Delete
sslproto.cpython-310.opt-1.pyc
21.29 KB
Rename
Delete
sslproto.cpython-310.opt-2.pyc
14.60 KB
Rename
Delete
sslproto.cpython-310.pyc
21.46 KB
Rename
Delete
staggered.cpython-310.opt-1.pyc
3.98 KB
Rename
Delete
staggered.cpython-310.opt-2.pyc
1.91 KB
Rename
Delete
staggered.cpython-310.pyc
4.10 KB
Rename
Delete
streams.cpython-310.opt-1.pyc
19.73 KB
Rename
Delete
streams.cpython-310.opt-2.pyc
14.04 KB
Rename
Delete
streams.cpython-310.pyc
19.92 KB
Rename
Delete
subprocess.cpython-310.opt-1.pyc
6.90 KB
Rename
Delete
subprocess.cpython-310.opt-2.pyc
6.78 KB
Rename
Delete
subprocess.cpython-310.pyc
6.91 KB
Rename
Delete
tasks.cpython-310.opt-1.pyc
23.37 KB
Rename
Delete
tasks.cpython-310.opt-2.pyc
16.04 KB
Rename
Delete
tasks.cpython-310.pyc
23.43 KB
Rename
Delete
threads.cpython-310.opt-1.pyc
1001 bytes
Rename
Delete
threads.cpython-310.opt-2.pyc
543 bytes
Rename
Delete
threads.cpython-310.pyc
1001 bytes
Rename
Delete
transports.cpython-310.opt-1.pyc
12.04 KB
Rename
Delete
transports.cpython-310.opt-2.pyc
6.70 KB
Rename
Delete
transports.cpython-310.pyc
12.06 KB
Rename
Delete
trsock.cpython-310.opt-1.pyc
7.67 KB
Rename
Delete
trsock.cpython-310.opt-2.pyc
7.43 KB
Rename
Delete
trsock.cpython-310.pyc
7.67 KB
Rename
Delete
unix_events.cpython-310.opt-1.pyc
40.42 KB
Rename
Delete
unix_events.cpython-310.opt-2.pyc
35.42 KB
Rename
Delete
unix_events.cpython-310.pyc
40.73 KB
Rename
Delete
windows_events.cpython-310.opt-1.pyc
23.60 KB
Rename
Delete
windows_events.cpython-310.opt-2.pyc
22.56 KB
Rename
Delete
windows_events.cpython-310.pyc
23.61 KB
Rename
Delete
windows_utils.cpython-310.opt-1.pyc
4.34 KB
Rename
Delete
windows_utils.cpython-310.opt-2.pyc
3.93 KB
Rename
Delete
windows_utils.cpython-310.pyc
4.41 KB
Rename
Delete
o �?Og- � @ sb d Z dZG dd� d�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d d� de�Zdd � ZdS )zAbstract Protocol base classes.)�BaseProtocol�Protocol�DatagramProtocol�SubprocessProtocol�BufferedProtocolc @ s4 e Zd ZdZdZdd� Zdd� Zdd� Zd d � ZdS )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 C � dS )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 transportr r �8/opt/alt/python310/lib64/python3.10/asyncio/protocols.py�connection_made � zBaseProtocol.connection_madec C r )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 �excr r r �connection_lost r zBaseProtocol.connection_lostc C r )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 r r r � pause_writing% r zBaseProtocol.pause_writingc C r )zvCalled when the transport's buffer drains below the low-water mark. See pause_writing() for details. Nr r r r r �resume_writing; r zBaseProtocol.resume_writingN) �__name__� __module__�__qualname__�__doc__� __slots__r r r r r r r r r s r c @ �$ e Zd ZdZdZdd� Zdd� ZdS )r an 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 C r )zTCalled when some data is received. The argument is a bytes object. Nr )r �datar r r � data_received^ r zProtocol.data_receivedc C r �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 r r r r �eof_receivedd r zProtocol.eof_receivedN)r r r r r r r r r r r r B s r c @ �, e Zd ZdZdZdd� Zdd� Zdd� Zd S ) r a: 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 C r )aP 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 �sizehintr r r � get_buffer� r zBufferedProtocol.get_bufferc C r )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 �nbytesr r r �buffer_updated� r zBufferedProtocol.buffer_updatedc C r r r r r r r r � r zBufferedProtocol.eof_receivedN)r r r r r r r r r r r r r m s r c @ r )r z Interface for datagram protocol.r c C r )z&Called when some datagram is received.Nr )r r Zaddrr r r �datagram_received� r z"DatagramProtocol.datagram_receivedc C r )z~Called when a send or receive operation raises an OSError. (Other than BlockingIOError or InterruptedError.) Nr r r r r �error_received� r zDatagramProtocol.error_receivedN)r r r r r r! r"