
    VhA                        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         j                          dd	lmZ  ej                   e               ej                          yy)
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y)HostPeerChildc           	      P   | j                   j                  dj                  t        | j                   j	                               j                  d      t        | j                   j                               j                  d      g             | j                   j                          y )N   
ascii)	transportwritejoinstrgetHostencodegetPeerloseConnection)selfs    P/home/dcms/DCMS/lib/python3.12/site-packages/twisted/test/stdio_test_hostpeer.pyconnectionMadezHostPeerChild.connectionMade   sw    JJ..0188A..0188A	
 	%%'    c                 ,    t        j                          y )N)reactorstop)r   reasons     r   connectionLostzHostPeerChild.connectionLost   s    r   N)__name__
__module____qualname__r   r    r   r   r   r      s    	(r   r   __main__   )r   )__doc__systwisted.internetr   r   twisted.pythonr   Protocolr   r   namedAnyargvinstallr   
StandardIOrunr   r   r   <module>r,      sw   
  , "H%%   zGSXXa[!))+(E]_%GKKM r   