An IProcessProtocol provider that wraps an IProtocol.

See Alsoprotocol.ProcessProtocol
Instance Variable transport A _ProcessEndpointTransport provider that is hooked to the wrapped IProtocol provider.
Method __init__ No summary
Method makeConnection Call IProtocol provider's makeConnection method with an ITransport provider.
Method childDataReceived This is called with data from the process's stdout or stderr pipes. It checks the status of the errFlag to setermine if stderr should be logged (default) or dropped.
Method processEnded If the process ends with error.ProcessDone, this method calls the IProtocol provider's connectionLost with a error.ConnectionDone

Inherited from BaseProtocol (via ProcessProtocol):

Method connectionMade Called when a connection is made.

Inherited from BaseProtocol (via ProcessProtocol):

Method connectionMade Called when a connection is made.
transport =
A _ProcessEndpointTransport provider that is hooked to the wrapped IProtocol provider.
def __init__(self, proto, executable, errFlag): (source)
ParametersprotoAn IProtocol provider.
errFlagA constant belonging to StandardErrorBehavior that determines if stderr is logged or dropped.
executableThe file name (full path) to spawn.
def makeConnection(self, process): (source)

Call IProtocol provider's makeConnection method with an ITransport provider.

ParametersprocessAn IProcessTransport provider.
def childDataReceived(self, childFD, data): (source)

This is called with data from the process's stdout or stderr pipes. It checks the status of the errFlag to setermine if stderr should be logged (default) or dropped.

API Documentation for Twisted, generated by pydoctor at 2017-02-11 20:06:04.