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__/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�