One Hat Cyber Team
Your IP :
13.59.18.177
Server IP :
103.133.214.160
Server :
Linux venus.ewebguru.net 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software :
Apache/2
PHP Version :
8.1.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib64
/
python3.6
/
asyncio
/
__pycache__
/
Edit File:
transports.cpython-36.pyc
3 � \R'������������������@���s����d�Z�ddlmZ�ddddddgZG�d d��d�ZG�d d��de�ZG�dd��de�ZG�dd��dee�ZG�d d��de�ZG�dd��de�Z G�dd��de�Z dS�)zAbstract Transport class.�����)�compat� BaseTransport� ReadTransport�WriteTransport� Transport�DatagramTransport�SubprocessTransportc���������������@���sD���e�Zd�ZdZddd�Zddd�Zdd��Zd d ��Zdd��Zd d��Z dS�)r���zBase class for transports.Nc�������������C���s���|d�kri�}||�_�d�S�)N)�_extra)�self�extra��r����*/usr/lib64/python3.6/asyncio/transports.py�__init__ ���s����zBaseTransport.__init__c�������������C���s���|�j�j||�S�)z#Get optional transport information.)r ����get)r ����name�defaultr���r���r ����get_extra_info���s����zBaseTransport.get_extra_infoc�������������C���s���t��dS�)z2Return True if the transport is closing or closed.N)�NotImplementedError)r ���r���r���r ���� is_closing���s����zBaseTransport.is_closingc�������������C���s���t��dS�)a ��Close 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) called with None as its argument. N)r���)r ���r���r���r ����close���s����zBaseTransport.closec�������������C���s���t��dS�)zSet a new protocol.N)r���)r ����protocolr���r���r ����set_protocol$���s����zBaseTransport.set_protocolc�������������C���s���t��dS�)zReturn the current protocol.N)r���)r ���r���r���r ����get_protocol(���s����zBaseTransport.get_protocol)N)N) �__name__� __module__�__qualname__�__doc__r���r���r���r���r���r���r���r���r���r ���r��� ���s��� c���������������@���s ���e�Zd�ZdZdd��Zdd��ZdS�)r���z#Interface for read-only transports.c�������������C���s���t��dS�)z�Pause the receiving end. No data will be passed to the protocol's data_received() method until resume_reading() is called. N)r���)r ���r���r���r ���� pause_reading0���s����zReadTransport.pause_readingc�������������C���s���t��dS�)z�Resume the receiving end. Data received will once again be passed to the protocol's data_received() method. N)r���)r ���r���r���r ����resume_reading8���s����zReadTransport.resume_readingN)r���r���r���r���r���r���r���r���r���r ���r���-���s���c���������������@���sJ���e�Zd�ZdZddd�Zdd��Zdd��Zd d ��Zdd��Zd d��Z dd��Z dS�)r���z$Interface for write-only transports.Nc�������������C���s���t��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. N)r���)r ����high�lowr���r���r ����set_write_buffer_limitsD���s����z&WriteTransport.set_write_buffer_limitsc�������������C���s���t��dS�)z,Return the current size of the write buffer.N)r���)r ���r���r���r ����get_write_buffer_sizeY���s����z$WriteTransport.get_write_buffer_sizec�������������C���s���t��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. N)r���)r ����datar���r���r ����write]���s����zWriteTransport.writec�������������C���s���t�j|�}|�j|��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)r���Zflatten_list_bytesr$���)r ���Zlist_of_datar#���r���r���r ���� writelinese���s���� zWriteTransport.writelinesc�������������C���s���t��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. N)r���)r ���r���r���r ���� write_eofn���s����zWriteTransport.write_eofc�������������C���s���t��dS�)zAReturn True if this transport supports write_eof(), False if not.N)r���)r ���r���r���r ���� can_write_eofw���s����zWriteTransport.can_write_eofc�������������C���s���t��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. N)r���)r ���r���r���r ����abort{���s����zWriteTransport.abort)NN)r���r���r���r���r!���r"���r$���r%���r&���r'���r(���r���r���r���r ���r���A���s��� c���������������@���s���e�Zd�ZdZdS�)r���aS��Interface 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. N)r���r���r���r���r���r���r���r ���r�������s���c���������������@���s"���e�Zd�ZdZddd�Zdd��ZdS�)r���z(Interface for datagram (UDP) transports.Nc�������������C���s���t��dS�)a��Send 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. N)r���)r ���r#���Zaddrr���r���r ����sendto����s����zDatagramTransport.sendtoc�������������C���s���t��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. N)r���)r ���r���r���r ���r(�������s����zDatagramTransport.abort)N)r���r���r���r���r)���r(���r���r���r���r ���r�������s��� c���������������@���s<���e�Zd�Zdd��Zdd��Zdd��Zdd��Zd d ��Zdd��Zd S�)r���c�������������C���s���t��dS�)zGet subprocess id.N)r���)r ���r���r���r ����get_pid����s����zSubprocessTransport.get_pidc�������������C���s���t��dS�)z�Get subprocess returncode. See also http://docs.python.org/3/library/subprocess#subprocess.Popen.returncode N)r���)r ���r���r���r ����get_returncode����s����z"SubprocessTransport.get_returncodec�������������C���s���t��dS�)z&Get transport for pipe with number fd.N)r���)r ����fdr���r���r ����get_pipe_transport����s����z&SubprocessTransport.get_pipe_transportc�������������C���s���t��dS�)z�Send signal to subprocess. See also: docs.python.org/3/library/subprocess#subprocess.Popen.send_signal N)r���)r ����signalr���r���r ����send_signal����s����zSubprocessTransport.send_signalc�������������C���s���t��dS�)aL��Stop 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 N)r���)r ���r���r���r ���� terminate����s����zSubprocessTransport.terminatec�������������C���s���t��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 N)r���)r ���r���r���r ����kill����s���� zSubprocessTransport.killN) r���r���r���r*���r+���r-���r/���r0���r1���r���r���r���r ���r�������s���c�������������������sV���e�Zd�ZdZd��fdd� Zdd��Zdd��Zd d ��Zddd�Zdd d�Z dd��Z ���ZS�)�_FlowControlMixinav��All 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. Nc����������������s0���t���j|��|d�k st�||�_d|�_|�j���d�S�)NF)�superr����AssertionError�_loop�_protocol_paused�_set_write_buffer_limits)r ���r���Zloop)� __class__r���r ���r�������s ����z_FlowControlMixin.__init__c�������������C���sp���|�j���}||�jkrd�S�|�jsld|�_y|�jj���W�n:�tk rj�}�z|�jjd||�|�jd���W�Y�d�d�}~X�nX�d�S�)NTzprotocol.pause_writing() failed)�message� exception� transportr���)r"����_high_waterr6���� _protocolZ pause_writing� Exceptionr5����call_exception_handler)r ����size�excr���r���r ����_maybe_pause_protocol����s���� z'_FlowControlMixin._maybe_pause_protocolc�������������C���sh���|�j�rd|�j��|�jkrdd|�_�y|�jj���W�n:�tk rb�}�z|�jjd||�|�jd���W�Y�d�d�}~X�nX�d�S�)NFz protocol.resume_writing() failed)r9���r:���r;���r���)r6���r"���� _low_waterr=���Zresume_writingr>���r5���r?���)r ���rA���r���r���r ����_maybe_resume_protocol��s����z(_FlowControlMixin._maybe_resume_protocolc�������������C���s���|�j�|�jfS�)N)rC���r<���)r ���r���r���r ����get_write_buffer_limits��s����z)_FlowControlMixin.get_write_buffer_limitsc�������������C���sf���|d�kr|d�krd}nd|�}|d�kr.|d�}||��ko@dkn��sVt�d||f���||�_||�_d�S�)N�@���i�������r���z*high (%r) must be >= low (%r) must be >= 0i���)� ValueErrorr<���rC���)r ���r���r ���r���r���r ���r7�����s����z*_FlowControlMixin._set_write_buffer_limitsc�������������C���s���|�j�||d��|�j���d�S�)N)r���r ���)r7���rB���)r ���r���r ���r���r���r ���r!���-��s����z)_FlowControlMixin.set_write_buffer_limitsc�������������C���s���t��d�S�)N)r���)r ���r���r���r ���r"���1��s����z'_FlowControlMixin.get_write_buffer_size)NN)NN)NN)r���r���r���r���r���rB���rD���rE���r7���r!���r"���� __classcell__r���r���)r8���r ���r2�������s��� r2���N)r���Zasyncior����__all__r���r���r���r���r���r���r2���r���r���r���r ����<module>���s��� #D4
Simpan