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__/stdio_test_hostpeer.cpython-310.pyc
o

�bA�@s~dZddlZddlmZmZddlmZGdd�dej�Ze	dkr=e�
ejd���dd	lm
Z
e�e��e
��dSdS)
z�
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTests.test_hostAndPeer} to test
that ITransport.getHost() and ITransport.getPeer() work for process transports.
�N)�protocol�stdio)�reflectc@seZdZdd�Zdd�ZdS)�
HostPeerChildcCsD|j�d�t|j����d�t|j����d�g��|j��dS)N�
�ascii)�	transport�write�join�str�getHost�encode�getPeer�loseConnection)�self�r�B/usr/lib/python3/dist-packages/twisted/test/stdio_test_hostpeer.py�connectionMades���zHostPeerChild.connectionMadecCst��dS)N)�reactor�stop)r�reasonrrr�connectionLostszHostPeerChild.connectionLostN)�__name__�
__module__�__qualname__rrrrrrrsr�__main__�)r)�__doc__�sys�twisted.internetrr�twisted.pythonr�Protocolrr�namedAny�argv�installr�
StandardIO�runrrrr�<module>s�