Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Upload File : |
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 (