HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
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 (