[Twisted-Python] Perspective broker over standard IO. How?

Itamar Turner-Trauring itamar at futurefoundries.com
Fri Feb 8 07:45:49 EST 2013


    # now what? The below is a wrong way to create protocol.

>     # But how do I do this?
>     proto = factory.buildProtocol(('foo',))
>     reactor.spawnProcess(proto, exe, args)
>

spawnProcess takes a ProcessProtocol, which has a different interface than
regular Protocols. You'll need to make a ProcessProtocol that hands over
data to the PB protocol instance. The process documentation covers the API:
http://twistedmatrix.com/documents/current/core/howto/process.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20130208/ca530699/attachment.htm 


More information about the Twisted-Python mailing list