File: //lib/python3/dist-packages/twisted/test/__pycache__/process_twisted.cpython-310.pyc
o
�b� � @ s� d Z ddlZddlZej�ejd ��ejd �Zedkr1ej� dej�ejd �ded � � ej� dej
� ddlmZ ddl
mZ ddlmZ e�ej� dd l
mZmZmZ eej�G d
d� dej��Ze�e� � e�� dS )z6A process that reads from stdin and out using Twisted.� N�Twisted���� )�implementer)�
interfaces)�log)�protocol�reactor�stdioc @ s4 e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� ZdS )�Echoc C � t d� d S )Nzconnection made��print��self� r �>/usr/lib/python3/dist-packages/twisted/test/process_twisted.py�connectionMade � zEcho.connectionMadec C s | j �|� d S )N)� transport�write)r �datar r r �dataReceived! s zEcho.dataReceivedc C s t d� | j�� d S )N�readConnectionLost)r r �loseConnectionr r r r r $ s zEcho.readConnectionLostc C r )N�writeConnectionLostr
r r r r r ( r zEcho.writeConnectionLostc C s t d|� t�� d S )N�connectionLost)r r �stop)r �reasonr r r r + s
zEcho.connectionLostN)�__name__�
__module__�__qualname__r r r r r r r r r r s r )�__doc__�os�sys�path�abspath�argv�find�sep�pos�insert�curdir�zope.interfacer �twisted.internetr �twisted.pythonr �startLogging�stderrr r r
�IHalfCloseableProtocol�Protocolr �
StandardIO�runr r r r �<module> s (