[Twisted-Python] Perspective broker over standard IO. How?
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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python