HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/usr/lib/python3/dist-packages/twisted/protocols/__pycache__/wire.cpython-38.pyc
U


W[�	�@s�dZddlmZmZddlZddlZddlmZddlm	Z	m
Z
Gdd�de	j�ZGdd	�d	e	j�Z
ee
j�Gd
d�de	j��ZGdd
�d
e	j�ZGdd�de	j�ZGdd�de	j�ZGdd�de	j�Zdd	dd
dddgZdS)zzImplement standard (and unused) TCP protocols.

These protocols are either provided by inetd, or are not provided at all.
�)�absolute_import�divisionN)�implementer)�protocol�
interfacesc@seZdZdZdd�ZdS)�EchozC
    As soon as any data is received, write it back (RFC 862).
    cCs|j�|�dS�N)�	transport�write��self�data�r�8/usr/lib/python3/dist-packages/twisted/protocols/wire.py�dataReceivedszEcho.dataReceivedN��__name__�
__module__�__qualname__�__doc__rrrrrrsrc@seZdZdZdd�ZdS)�Discardz.
    Discard any received data (RFC 863).
    cCsdSrrrrrrr#szDiscard.dataReceivedNrrrrrrsrc@s4eZdZdZdZdd�Zdd�Zdd�Zd	d
�ZdS)�Chargenz-
    Generate repeating noise (RFC 864).
    sG@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !"#$%&?cCs|j�|d�dS)Nr)r	ZregisterProducer�rrrr�connectionMade0szChargen.connectionMadecCs|j�|j�dSr)r	r
�noiserrrr�resumeProducing4szChargen.resumeProducingcCsdSrrrrrr�pauseProducing8szChargen.pauseProducingcCsdSrrrrrr�
stopProducing<szChargen.stopProducingN)	rrrrrrrrrrrrrr)src@s eZdZdZdd�Zdd�ZdS)�QOTDz.
    Return a quote of the day (RFC 865).
    cCs|j�|���|j��dSr)r	r
�getQuote�loseConnectionrrrrrFszQOTD.connectionMadecCsdS)zB
        Return a quote. May be overrriden in subclasses.
        s'An apple a day keeps the doctor away.
rrrrrrKsz
QOTD.getQuoteN)rrrrrrrrrrrAsrc@s eZdZdZdd�Zdd�ZdS)�Whoz/
    Return list of active users (RFC 866)
    cCs|j�|���|j��dSr)r	r
�getUsersr rrrrrXszWho.connectionMadecCsdS)z>
        Return active users. Override in subclasses.
        sroot
rrrrrr"]szWho.getUsersN)rrrrrr"rrrrr!Ssr!c@seZdZdZdd�ZdS)�Daytimez8
    Send back the daytime in ASCII form (RFC 867).
    cCs.|j�t�t�t����d�|j��dS)Ns
)r	r
�time�asctime�gmtimer rrrrrjs zDaytime.connectionMadeN�rrrrrrrrrr#esr#c@seZdZdZdd�ZdS)�Timez@
    Send back the time in machine readable form (RFC 868).
    cCs.t�dtt����}|j�|�|j��dS)Nz!i)�structZpack�intr$r	r
r )r�resultrrrruszTime.connectionMadeNr'rrrrr(psr()rZ
__future__rrr$r)Zzope.interfacerZtwisted.internetrrZProtocolrrZ	IProducerrrr!r#r(�__all__rrrr�<module>s