HEX
Server: nginx/1.24.0
System: Linux ip-10-50-20-85 6.5.0-1022-aws #22~22.04.1-Ubuntu SMP Fri Jun 14 16:31:00 UTC 2024 x86_64
User: usefuloffices.org (1001)
PHP: 8.1.2-1ubuntu2.23
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 (