
    YfA                        d Z ddlZddlmZmZ ddlmZ  G d dej                  Ze	dk    r\ ej
        ej        d                                                    dd	lmZ  ej         e                        ej                     dS dS )
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                       e Zd Zd Zd ZdS )HostPeerChildc           	      r   | j                             d                    t          | j                                                                       d          t          | j                                                                       d          g                     | j                                          d S )N   
ascii)	transportwritejoinstrgetHostencodegetPeerloseConnection)selfs    R/var/www/html/env/lib/python3.11/site-packages/twisted/test/stdio_test_hostpeer.pyconnectionMadezHostPeerChild.connectionMade   s    JJ..001188AA..001188AA 	
 	
 	
 	%%'''''    c                 ,    t          j                     d S )N)reactorstop)r   reasons     r   connectionLostzHostPeerChild.connectionLost   s    r   N)__name__
__module____qualname__r   r    r   r   r   r      s2        	( 	( 	(    r   r   __main__   )r   )__doc__systwisted.internetr   r   twisted.pythonr   Protocolr   r   namedAnyargvinstallr   
StandardIOrunr   r   r   <module>r,      s   
  


 , , , , , , , , " " " " " "    H%     zGSXa[!!))+++((((((E]]__%%%GKMMMMM r   