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__/transports.cpython-39.pyc
a

XC?h�)�@s|dZdZGdd�d�ZGdd�de�ZGdd�de�ZGdd	�d	ee�ZGd
d�de�ZGdd
�d
e�ZGdd�de�ZdS)zAbstract Transport class.)�
BaseTransport�
ReadTransport�WriteTransport�	Transport�DatagramTransport�SubprocessTransportc@sHeZdZdZdZddd�Zddd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dS)rzBase class for transports.��_extraNcCs|duri}||_dS�Nr)�self�extra�r�7/opt/alt/python39/lib64/python3.9/asyncio/transports.py�__init__szBaseTransport.__init__cCs|j�||�S)z#Get optional transport information.)r�get)r
�name�defaultrrr
�get_extra_infoszBaseTransport.get_extra_infocCst�dS)z2Return True if the transport is closing or closed.N��NotImplementedError�r
rrr
�
is_closingszBaseTransport.is_closingcCst�dS)aClose the transport.

        Buffered data will be flushed asynchronously.  No more data
        will be received.  After all buffered data is flushed, the
        protocol's connection_lost() method will (eventually) be
        called with None as its argument.
        Nrrrrr
�closeszBaseTransport.closecCst�dS)zSet a new protocol.Nr)r
�protocolrrr
�set_protocol%szBaseTransport.set_protocolcCst�dS)zReturn the current protocol.Nrrrrr
�get_protocol)szBaseTransport.get_protocol)N)N)�__name__�
__module__�__qualname__�__doc__�	__slots__rrrrrrrrrr
r	s


rc@s,eZdZdZdZdd�Zdd�Zdd�Zd	S)
rz#Interface for read-only transports.rcCst�dS)z*Return True if the transport is receiving.Nrrrrr
�
is_reading3szReadTransport.is_readingcCst�dS)z�Pause the receiving end.

        No data will be passed to the protocol's data_received()
        method until resume_reading() is called.
        Nrrrrr
�
pause_reading7szReadTransport.pause_readingcCst�dS)z�Resume the receiving end.

        Data received will once again be passed to the protocol's
        data_received() method.
        Nrrrrr
�resume_reading?szReadTransport.resume_readingN)rrrrrr r!r"rrrr
r.s
rc@sVeZdZdZdZddd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�ZdS)rz$Interface for write-only transports.rNcCst�dS)a�Set the high- and low-water limits for write flow control.

        These two values control when to call the protocol's
        pause_writing() and resume_writing() methods.  If specified,
        the low-water limit must be less than or equal to the
        high-water limit.  Neither value can be negative.

        The defaults are implementation-specific.  If only the
        high-water limit is given, the low-water limit defaults to an
        implementation-specific value less than or equal to the
        high-water limit.  Setting high to zero forces low to zero as
        well, and causes pause_writing() to be called whenever the
        buffer becomes non-empty.  Setting low to zero causes
        resume_writing() to be called only once the buffer is empty.
        Use of zero for either limit is generally sub-optimal as it
        reduces opportunities for doing I/O and computation
        concurrently.
        Nr�r
�high�lowrrr
�set_write_buffer_limitsMsz&WriteTransport.set_write_buffer_limitscCst�dS)z,Return the current size of the write buffer.Nrrrrr
�get_write_buffer_sizebsz$WriteTransport.get_write_buffer_sizecCst�dS)z�Get the high and low watermarks for write flow control. 
        Return a tuple (low, high) where low and high are 
        positive number of bytes.Nrrrrr
�get_write_buffer_limitsfsz&WriteTransport.get_write_buffer_limitscCst�dS)z�Write some data bytes to the transport.

        This does not block; it buffers the data and arranges for it
        to be sent out asynchronously.
        Nr)r
�datarrr
�writelszWriteTransport.writecCsd�|�}|�|�dS)z�Write a list (or any iterable) of data bytes to the transport.

        The default implementation concatenates the arguments and
        calls write() on the result.
        �N)�joinr*)r
Zlist_of_datar)rrr
�
writelinests
zWriteTransport.writelinescCst�dS)z�Close the write end after flushing buffered data.

        (This is like typing ^D into a UNIX program reading from stdin.)

        Data may still be received.
        Nrrrrr
�	write_eof}szWriteTransport.write_eofcCst�dS)zAReturn True if this transport supports write_eof(), False if not.Nrrrrr
�
can_write_eof�szWriteTransport.can_write_eofcCst�dS�z�Close the transport immediately.

        Buffered data will be lost.  No more data will be received.
        The protocol's connection_lost() method will (eventually) be
        called with None as its argument.
        Nrrrrr
�abort�szWriteTransport.abort)NN)
rrrrrr&r'r(r*r-r.r/r1rrrr
rHs
		rc@seZdZdZdZdS)raSInterface representing a bidirectional transport.

    There may be several implementations, but typically, the user does
    not implement new transports; rather, the platform provides some
    useful transports that are implemented using the platform's best
    practices.

    The user never instantiates a transport directly; they call a
    utility function, passing it a protocol factory and other
    information necessary to create the transport and protocol.  (E.g.
    EventLoop.create_connection() or EventLoop.create_server().)

    The utility function will asynchronously create a transport and a
    protocol and hook them up by calling the protocol's
    connection_made() method, passing it the transport.

    The implementation here raises NotImplemented for every method
    except writelines(), which calls write() in a loop.
    rN)rrrrrrrrr
r�src@s&eZdZdZdZddd�Zdd�ZdS)	rz(Interface for datagram (UDP) transports.rNcCst�dS)aSend data to the transport.

        This does not block; it buffers the data and arranges for it
        to be sent out asynchronously.
        addr is target socket address.
        If addr is None use target address pointed on transport creation.
        Nr)r
r)Zaddrrrr
�sendto�szDatagramTransport.sendtocCst�dSr0rrrrr
r1�szDatagramTransport.abort)N)rrrrrr2r1rrrr
r�s

rc@s@eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dS)rrcCst�dS)zGet subprocess id.Nrrrrr
�get_pid�szSubprocessTransport.get_pidcCst�dS)z�Get subprocess returncode.

        See also
        http://docs.python.org/3/library/subprocess#subprocess.Popen.returncode
        Nrrrrr
�get_returncode�sz"SubprocessTransport.get_returncodecCst�dS)z&Get transport for pipe with number fd.Nr)r
�fdrrr
�get_pipe_transport�sz&SubprocessTransport.get_pipe_transportcCst�dS)z�Send signal to subprocess.

        See also:
        docs.python.org/3/library/subprocess#subprocess.Popen.send_signal
        Nr)r
�signalrrr
�send_signal�szSubprocessTransport.send_signalcCst�dS)aLStop the subprocess.

        Alias for close() method.

        On Posix OSs the method sends SIGTERM to the subprocess.
        On Windows the Win32 API function TerminateProcess()
         is called to stop the subprocess.

        See also:
        http://docs.python.org/3/library/subprocess#subprocess.Popen.terminate
        Nrrrrr
�	terminate�szSubprocessTransport.terminatecCst�dS)z�Kill the subprocess.

        On Posix OSs the function sends SIGKILL to the subprocess.
        On Windows kill() is an alias for terminate().

        See also:
        http://docs.python.org/3/library/subprocess#subprocess.Popen.kill
        Nrrrrr
�kill�s	zSubprocessTransport.killN)
rrrrr3r4r6r8r9r:rrrr
r�srcsZeZdZdZdZd�fdd�	Zdd�Zdd	�Zd
d�Zddd
�Z	ddd�Z
dd�Z�ZS)�_FlowControlMixinavAll the logic for (write) flow control in a mix-in base class.

    The subclass must implement get_write_buffer_size().  It must call
    _maybe_pause_protocol() whenever the write buffer size increases,
    and _maybe_resume_protocol() whenever it decreases.  It may also
    override set_write_buffer_limits() (e.g. to specify different
    defaults).

    The subclass constructor must call super().__init__(extra).  This
    will call set_write_buffer_limits().

    The user may call set_write_buffer_limits() and
    get_write_buffer_size(), and their protocol's pause_writing() and
    resume_writing() may be called.
    )�_loop�_protocol_paused�_high_water�
_low_waterNcs0t��|�|dusJ�||_d|_|��dS)NF)�superrr<r=�_set_write_buffer_limits)r
rZloop��	__class__rr
rs
z_FlowControlMixin.__init__c
Cs�|��}||jkrdS|js�d|_z|j��WnRttfyH�Yn<ty�}z$|j�	d|||jd��WYd}~n
d}~00dS)NTzprotocol.pause_writing() failed��messageZ	exceptionZ	transportr)
r'r>r=�	_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��WnRttfy@�Yn<tyz}z$|j�	d|||jd��WYd}~n
d}~00dS)NFz protocol.resume_writing() failedrD)
r=r'r?rFZresume_writingrGrHrIr<rJ)r
rLrrr
�_maybe_resume_protocol's��z(_FlowControlMixin._maybe_resume_protocolcCs|j|jfSr	)r?r>rrrr
r(7sz)_FlowControlMixin.get_write_buffer_limitscCsj|dur|durd}nd|}|dur.|d}||krBdksZntd|�d|�d���||_||_dS)Ni��zhigh (z) must be >= low (z) must be >= 0)�
ValueErrorr>r?r#rrr
rA:s�z*_FlowControlMixin._set_write_buffer_limitscCs|j||d�|��dS)N)r$r%)rArMr#rrr
r&Jsz)_FlowControlMixin.set_write_buffer_limitscCst�dSr	rrrrr
r'Nsz'_FlowControlMixin.get_write_buffer_size)NN)NN)NN)
rrrrrrrMrNr(rAr&r'�
__classcell__rrrBr
r;�s

r;N)	r�__all__rrrrrrr;rrrr
�<module>s%L6
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--