Your IP : 216.73.216.61


Current Path : /opt/alt/python37/lib64/python3.7/site-packages/twisted/protocols/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/site-packages/twisted/protocols/__pycache__/wire.cpython-37.pyc

B

:��]�	�@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�I/opt/alt/python37/lib64/python3.7/site-packages/twisted/protocols/wire.py�dataReceivedszEcho.dataReceivedN)�__name__�
__module__�__qualname__�__doc__rrrrr
rsrc@seZdZdZdd�ZdS)�Discardz.
    Discard any received data (RFC 863).
    cCsdS)Nr)r
rrrr
r#szDiscard.dataReceivedN)rrrrrrrrr
rsrc@s4eZdZdZdZdd�Zdd�Zdd�Zd	d
�ZdS)�Chargenz-
    Generate repeating noise (RFC 864).
    sG@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !"#$%&?cCs|j�|d�dS)Nr)rZregisterProducer)r
rrr
�connectionMade0szChargen.connectionMadecCs|j�|j�dS)N)rr	�noise)r
rrr
�resumeProducing4szChargen.resumeProducingcCsdS)Nr)r
rrr
�pauseProducing8szChargen.pauseProducingcCsdS)Nr)r
rrr
�
stopProducing<szChargen.stopProducingN)	rrrrrrrrrrrrr
r)src@s eZdZdZdd�Zdd�ZdS)�QOTDz.
    Return a quote of the day (RFC 865).
    cCs|j�|���|j��dS)N)rr	�getQuote�loseConnection)r
rrr
rFszQOTD.connectionMadecCsdS)zB
        Return a quote. May be overrriden in subclasses.
        s'An apple a day keeps the doctor away.
r)r
rrr
rKsz
QOTD.getQuoteN)rrrrrrrrrr
rAsrc@s eZdZdZdd�Zdd�ZdS)�Whoz/
    Return list of active users (RFC 866)
    cCs|j�|���|j��dS)N)rr	�getUsersr)r
rrr
rXszWho.connectionMadecCsdS)z>
        Return active users. Override in subclasses.
        sroot
r)r
rrr
r]szWho.getUsersN)rrrrrrrrrr
rSsrc@seZdZdZdd�ZdS)�Daytimez8
    Send back the daytime in ASCII form (RFC 867).
    cCs.|j�t�t�t����d�|j��dS)Ns
)rr	�time�asctime�gmtimer)r
rrr
rjs zDaytime.connectionMadeN)rrrrrrrrr
resrc@seZdZdZdd�ZdS)�Timez@
    Send back the time in machine readable form (RFC 868).
    cCs.t�dtt����}|j�|�|j��dS)Nz!i)�struct�pack�intr rr	r)r
�resultrrr
ruszTime.connectionMadeN)rrrrrrrrr
r#psr#)r�
__future__rrr r$Zzope.interfacerZtwisted.internetrrZProtocolrrZ	IProducerrrrrr#�__all__rrrr
�<module>s