HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/twisted/test/__pycache__/process_twisted.cpython-310.pyc
o

�b��@s�dZddlZddlZej�ejd��ejd�Zedkr1ej�	dej�ejd�ded��ej�	dej
�ddlmZddl
mZddlmZe�ej�dd	l
mZmZmZeej�Gd
d�dej��Ze�e��e��dS)z6A process that reads from stdin and out using Twisted.�N�Twisted����)�implementer)�
interfaces)�log)�protocol�reactor�stdioc@s4eZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�EchocC�td�dS)Nzconnection made��print��self�r�>/usr/lib/python3/dist-packages/twisted/test/process_twisted.py�connectionMade�zEcho.connectionMadecCs|j�|�dS)N)�	transport�write)r�datarrr�dataReceived!szEcho.dataReceivedcCstd�|j��dS)N�readConnectionLost)rr�loseConnectionrrrrr$szEcho.readConnectionLostcCr)N�writeConnectionLostr
rrrrr(rzEcho.writeConnectionLostcCstd|�t��dS)N�connectionLost)rr	�stop)r�reasonrrrr+s
zEcho.connectionLostN)�__name__�
__module__�__qualname__rrrrrrrrrrsr)�__doc__�os�sys�path�abspath�argv�find�sep�pos�insert�curdir�zope.interfacer�twisted.internetr�twisted.pythonr�startLogging�stderrrr	r
�IHalfCloseableProtocol�Protocolr�
StandardIO�runrrrr�<module>s (