t.i.e.ProcessEndpoint(object) : class documentation

Part of twisted.internet.endpoints View Source View In Hierarchy

An endpoint for child processes
Present Since13.1
Method __init__ See IReactorProcess.spawnProcess.
Method connect Implement IStreamClientEndpoint.connect to launch a child process and connect it to a protocol created by protocolFactory.
Instance Variable _spawnProcess A hook used for testing the spawning of child process.
_spawnProcess =
A hook used for testing the spawning of child process.
def __init__(self, reactor, executable, args=(), env={}, path=None, uid=None, gid=None, usePTY=0, childFDs=None, errFlag=StandardErrorBehavior.LOG): (source)
See IReactorProcess.spawnProcess.
ParameterserrFlagDetermines if stderr should be logged. (type: endpoints.StandardErrorBehavior)
def connect(self, protocolFactory): (source)
Implement IStreamClientEndpoint.connect to launch a child process and connect it to a protocol created by protocolFactory.
ParametersprotocolFactoryA factory for an IProtocol provider which will be notified of all events related to the created process.
API Documentation for Twisted, generated by pydoctor at 2015-01-30 14:14:53.