ϪfdZddlZddlmZmZmZddlmZmZddl m Z e je je je je jdZGddeZGd d eZy) z Twisted inetd. Maintainer: Andrew Bennetts Future Plans: Bugfixes. Specifically for UDP and Sun-RPC, which don't work correctly yet. N)fdescprocessreactor)Protocol ServerFactory)wire)echochargendiscarddaytimetimeceZdZdZdZy) 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}|tjk(rd}|tjk(rd}tjd|j|jtj dd||| t#j$|jt#j&|jy)N)r) transportfilenofactory stderrFiler setBlockingserviceusergrouposgetuidgetgidrProcessprogram programArgsenvironr removeReader removeWriter)selfsockFDchildFDsruidgids 6/usr/lib/python3/dist-packages/twisted/runner/inetd.pyconnectionMadezInetdProtocol.connectionMade#s&&(&) << " ",,1188:HQK &! =   hqk *,,&&llmm "))+ C "))+ C  OO    JJ       T^^,T^^,N)__name__ __module__ __qualname____doc__r*r+r)rr s N%-r+rceZdZeZdZdZy) InetdFactoryNc||_y)N)r)r$rs r)__init__zInetdFactory.__init__Os  r+)r,r-r.rprotocolrr4r0r+r)r2r2KsHJr+r2)r/rtwisted.internetrrrtwisted.internet.protocolrrtwisted.protocolsrEchoChargenDiscardDaytimeTimeinternalProtocolsrr2r0r+r)r?sa  44=" II|||||| II (-H(-V=r+