On Sep 5, 2014, at 5:13 AM, exar...@twistedmatrix.com wrote: > It seems like a better API would let you say "Here is a protocol, hook its > output up to fd 0 in the process, hook fd 1 in the process up to its input. > Here is another protocol, hook fd 2 in the process up to its input" (this > would probably be a common configuration - "speak some regular protocol over > stdin/stdout, have a little special logic (probably logging) for stderr).
+1 > On the other hand, it's possible to build this on top of ProcessProtocol and > no one ever has... Of course we have _sort of_ done it a gajillion times: <https://twistedmatrix.com/documents/current/api/twisted.internet.endpoints._WrapIProtocol.html> -glyph
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python