On Wed, Jul 28, 2010 at 08:10:48AM -0400, Itamar Turner-Trauring wrote: > On Wed, 2010-07-28 at 15:14 +0400, [email protected] 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: > > http://twistedmatrix.com/documents/current/core/howto/process.html 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: > http://twistedmatrix.com/trac/browser/tags/releases/twisted-10.1.0/twisted/runner/inetd.py Thanks. > > > > _______________________________________________ > Twisted-Python mailing list > [email protected] > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python -- Alexey. _______________________________________________ Twisted-Python mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
