[Twisted-Python] What is the minimum effort solution to make inetd-managed twisted-based application?
twisted-web at udmvt.ru
Thu Jul 29 03:22:25 EDT 2010
On Wed, Jul 28, 2010 at 08:10:48AM -0400, Itamar Turner-Trauring wrote:
> On Wed, 2010-07-28 at 15:14 +0400, twisted-web at udmvt.ru wrote:
> > The second file is a UNIX program, it uses socketpair() and then fork()
> > to start both client and server, they talk each other via PB protocol.
> > Running that produces some noise to the screen and then they exit.
> You probably want to use reactor.spawnProcess, not fork - it also allows
> you to pass arbitrary file descriptors to the child process:
Yes, ofcourse, in real program I'd use that.
But for demo purposes I decided to place all code into single python program.
> Also, an example:
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
More information about the Twisted-Python