Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/twisted/conch/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/twisted/conch/__pycache__/mixin.cpython-310.pyc
o

�b]�@s"dZddlmZGdd�d�ZdS)z�
Experimental optimization

This module provides a single mixin class which allows protocols to
collapse numerous small writes into a single larger one.

@author: Jp Calderone
�)�reactorc@s<eZdZdZdZdZdZdd�Zdd�Zdd	�Z	d
d�Z
dS)�BufferingMixinz+
    Mixin which adds write buffering.
    NgcCst�|j|j�S�N)r�	callLater�DELAY�flush��self�r
�5/usr/lib/python3/dist-packages/twisted/conch/mixin.py�schedule�zBufferingMixin.schedulecCs|�|j�dSr)�resetr)r	�tokenr
r
r�
rescheduler
zBufferingMixin.reschedulecCs8|jdurg|_|��|_n|�|j�|j�|�dS)a
        Buffer some bytes to be written soon.

        Every call to this function delays the real write by C{self.DELAY}
        seconds.  When the delay expires, all collected bytes are written
        to the underlying transport using L{ITransport.writeSequence}.
        N)�_delayedWriteCall�datarr�append)r	rr
r
r�write!s

zBufferingMixin.writecCsd|_|j�|j�d|_dS)z/
        Flush the buffer immediately.
        N)r�	transport�
writeSequencerrr
r
rr0s
zBufferingMixin.flush)�__name__�
__module__�__qualname__�__doc__rrrrrrrr
r
r
rrsrN)r�twisted.internetrrr
r
r
r�<module>s	

Spamworldpro Mini