Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/test/__pycache__/ |
Upload File : |
o �bA � @ s~ d Z ddlZddlmZmZ ddlmZ G dd� dej�Ze dkr=e� ejd ��� dd lm Z e�e� � e �� dS dS ) 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 @ s e Zd Zdd� Zdd� ZdS )� HostPeerChildc C sD | j �d�t| j �� ��d�t| j �� ��d�g�� | j �� d S )N� �ascii)� transport�write�join�str�getHost�encode�getPeer�loseConnection)�self� r �B/usr/lib/python3/dist-packages/twisted/test/stdio_test_hostpeer.py�connectionMade s ���zHostPeerChild.connectionMadec C s t �� d S )N)�reactor�stop)r �reasonr r r �connectionLost s zHostPeerChild.connectionLostN)�__name__� __module__�__qualname__r r r r r r r s r �__main__� )r )�__doc__�sys�twisted.internetr r �twisted.pythonr �Protocolr r �namedAny�argv�installr � StandardIO�runr r r r �<module> s �