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: //usr/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�