%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/runner/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/runner/__pycache__/inetd.cpython-312.pyc

�

Ϫ�f�����dZddlZddlmZmZmZddlmZmZddl	m
Z
e
je
je
je
je
jd�ZGd�de�ZGd	�d
e�Zy)z�
Twisted inetd.

Maintainer: Andrew Bennetts

Future Plans: Bugfixes.  Specifically for UDP and Sun-RPC, which don't work
correctly yet.
�N)�fdesc�process�reactor)�Protocol�
ServerFactory)�wire)�echo�chargen�discard�daytime�timec��eZdZdZd�Zy)�
InetdProtocolzDForks a child process on connectionMade, passing the socket as fd 0.c���|jj�}||d�}|jjr'|jjj�|d<t	j
|�d|vrt	j
|d�|jj}|j}|j}|tj�k(rd}|tj�k(rd}tjd|j|jtj dd|||�	t#j$|j�t#j&|j�y)N)r��)�	transport�fileno�factory�
stderrFiler�setBlocking�service�user�group�os�getuid�getgidr�Process�program�programArgs�environr�removeReader�removeWriter)�self�sockFD�childFDsr�uid�gids      �6/usr/lib/python3/dist-packages/twisted/runner/inetd.py�connectionMadezInetdProtocol.connectionMade#s�����&�&�(���&�)���<�<�"�"��,�,�1�1�8�8�:�H�Q�K�
	���&�!���=����h�q�k�*��,�,�&�&���l�l���m�m���"�)�)�+���C��"�)�)�+���C������O�O�����J�J������
	
�	���T�^�^�,����T�^�^�,�N)�__name__�
__module__�__qualname__�__doc__r*�r+r)rr s
��N�%-r+rc��eZdZeZdZd�Zy)�InetdFactoryNc��||_y)N)r)r$rs  r)�__init__zInetdFactory.__init__Os	����r+)r,r-r.r�protocolrr4r0r+r)r2r2Ks���H��J�r+r2)r/r�twisted.internetrrr�twisted.internet.protocolrr�twisted.protocolsr�Echo�Chargen�Discard�Daytime�Time�internalProtocolsrr2r0r+r)�<module>r?sa���
�4�4�=�"�

�I�I��|�|��|�|��|�|��I�I���(-�H�(-�V�=�r+

Zerion Mini Shell 1.0