%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/test/__pycache__/stdio_test_hostpeer.cpython-312.pyc |
� Ϫ�fA � � � d Z ddlZddlmZmZ ddlmZ G d� dej � Ze dk( r\ ej ej d � j � dd lm Z ej e� � e j � yy) 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 Zd Zd� Zd� Zy)� HostPeerChildc �P � | j j dj 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 �B/usr/lib/python3/dist-packages/twisted/test/stdio_test_hostpeer.py�connectionMadezHostPeerChild.connectionMade sw � �������J�J�����.�.�0�1�8�8��A�����.�.�0�1�8�8��A�� � � ���%�%�'� c �, � t j � y )N)�reactor�stop)r �reasons r �connectionLostzHostPeerChild.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���S�X�X�a�[�!�)�)�+�(��E���]�_�%��G�K�K�M� r