File: //usr/lib/python3/dist-packages/twisted/protocols/__pycache__/wire.cpython-310.pyc
o
�b� � @ s� d Z ddlZddlZddlmZ ddlmZmZ G dd� dej�Z G dd� dej�Z
eej�G d d
� d
ej��ZG dd� dej�Z
G d
d� dej�ZG dd� dej�ZG dd� dej�Zg d�ZdS )zzImplement standard (and unused) TCP protocols.
These protocols are either provided by inetd, or are not provided at all.
� N)�implementer)�
interfaces�protocolc @ � e Zd ZdZdd� ZdS )�EchozC
As soon as any data is received, write it back (RFC 862).
c C s | j �|� d S �N)� transport�write��self�data� r
�8/usr/lib/python3/dist-packages/twisted/protocols/wire.py�dataReceived s zEcho.dataReceivedN��__name__�
__module__�__qualname__�__doc__r r
r
r
r r � r c @ r )�Discardz.
Discard any received data (RFC 863).
c C � d S r r
r
r
r
r r s zDiscard.dataReceivedNr r
r
r
r r r r c @ s4 e Zd ZdZdZdd� Zdd� Zdd� Zd d
� ZdS )�Chargenz-
Generate repeating noise (RFC 864).
sG @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ !"#$%&?c C s | j �| d� d S )Nr )r �registerProducer�r r
r
r �connectionMade- � zChargen.connectionMadec C s | j �| j� d S r )r r �noiser r
r
r �resumeProducing0 r zChargen.resumeProducingc C r r r
r r
r
r �pauseProducing3 � zChargen.pauseProducingc C r r r
r r
r
r �
stopProducing6 r zChargen.stopProducingN) r r r r r r r r r! r
r
r
r r % s r c @ � e Zd ZdZdd� Zdd� ZdS )�QOTDz.
Return a quote of the day (RFC 865).
c C � | j �| �� � | j �� d S r )r r �getQuote�loseConnectionr r
r
r r ? � zQOTD.connectionMadec C � dS )zB
Return a quote. May be overrriden in subclasses.
s'