HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/usr/lib/python3/dist-packages/twisted/runner/__pycache__/inetd.cpython-38.pyc
U


W[��@szdZddlZddlmZmZmZddlmZmZddl	m
Z
e
je
je
j
e
je
jd�ZGdd�de�ZGd	d
�d
e�ZdS)z�
Twisted inetd.

Maintainer: Andrew Bennetts

Future Plans: Bugfixes.  Specifically for UDP and Sun-RPC, which don't work
correctly yet.
�N)�process�reactor�fdesc)�Protocol�
ServerFactory)�wire)ZechoZchargen�discardZdaytime�timec@seZdZdZdd�ZdS)�
InetdProtocolzDForks a child process on connectionMade, passing the socket as fd 0.cCs�|j��}||d�}|jjr,|jj��|d<t�|�d|krLt�|d�|jj}|j}|j}|t	�
�krpd}|t	��kr�d}t�
d|j|jt	jdd|||�	t�|j�t�|j�dS)N)r��)Z	transport�fileno�factory�
stderrFilerZsetBlocking�service�user�group�os�getuid�getgidrZProcessZprogramZprogramArgs�environrZremoveReaderZremoveWriter)�selfZsockFDZchildFDsrZuid�gid�r�6/usr/lib/python3/dist-packages/twisted/runner/inetd.py�connectionMade"s.


�zInetdProtocol.connectionMadeN)�__name__�
__module__�__qualname__�__doc__rrrrrr
 sr
c@seZdZeZdZdd�ZdS)�InetdFactoryNcCs
||_dS)N)r)rrrrr�__init__EszInetdFactory.__init__)rrrr
Zprotocolrr!rrrrr Asr )rrZtwisted.internetrrrZtwisted.internet.protocolrrZtwisted.protocolsrZEchoZChargenZDiscardZDaytimeZTimeZinternalProtocolsr
r rrrr�<module>s	�	!