
    \d                     z   d Z ddlZddlZej                            ej        d                                       ej        dz             Zedk    rIej        	                    dej                            ej        d                   dedz                       ej        	                    dej
                   ddlmZ ddlmZ ddlmZ  ej        ej                   dd	lmZmZmZ  eej                   G d
 dej                              Z ej         e                        ej                     dS )z6A process that reads from stdin and out using Twisted.    NTwisted   )implementer)
interfaces)log)protocolreactorstdioc                   ,    e Zd Zd Zd Zd Zd Zd ZdS )Echoc                 $    t          d           d S )Nzconnection madeprintselfs    <lib/python3.11/site-packages/twisted/test/process_twisted.pyconnectionMadezEcho.connectionMade   s             c                 :    | j                             |           d S )N)	transportwrite)r   datas     r   dataReceivedzEcho.dataReceived!   s    T"""""r   c                 V    t          d           | j                                         d S )NreadConnectionLost)r   r   loseConnectionr   s    r   r   zEcho.readConnectionLost$   s+    "###%%'''''r   c                 $    t          d           d S )NwriteConnectionLostr   r   s    r   r   zEcho.writeConnectionLost(   s    #$$$$$r   c                 L    t          d|           t          j                     d S )NconnectionLost)r   r
   stop)r   reasons     r   r!   zEcho.connectionLost+   s"    '''r   N)__name__
__module____qualname__r   r   r   r   r!    r   r   r   r      s_        ! ! !# # #( ( (% % %    r   r   )__doc__ossyspathabspathargvfindsepposinsertcurdirzope.interfacer   twisted.internetr   twisted.pythonr   startLoggingstderrr	   r
   r   IHalfCloseableProtocolProtocolr   
StandardIOrunr'   r   r   <module>r<      s   < < 
			 



goochqk""''(:;;"99HOOArwsx{33IcAgI>??? 29    ' & & & & & ' ' ' ' ' '            6 5 5 5 5 5 5 5 5 5 Z.//    8   0/&      r   