class documentation
class _WrapIProtocol(ProcessProtocol): (source)
Constructor: _WrapIProtocol(proto, executable, errFlag)
An IProcessProtocol
provider that wraps an IProtocol
.
See Also | |
protocol.ProcessProtocol |
Method | __init__ |
No summary |
Method | child |
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 | make |
Call IProtocol provider's makeConnection method with an ITransport provider. |
Method | process |
If the process ends with error.ProcessDone , this method calls the IProtocol provider's connectionLost with a error.ConnectionDone |
Instance Variable | err |
Undocumented |
Instance Variable | executable |
Undocumented |
Instance Variable | protocol |
Undocumented |
Instance Variable | transport |
A _ProcessEndpointTransport provider that is hooked to the wrapped IProtocol provider. |
Inherited from ProcessProtocol
:
Method | child |
Called when a file descriptor associated with the child process is closed. |
Method | err |
This will be called when stderr is closed. |
Method | err |
Some data was received from stderr. |
Method | in |
This will be called when stdin is closed. |
Method | out |
This will be called when stdout is closed. |
Method | out |
Some data was received from stdout. |
Method | process |
This will be called when the subprocess exits. |
Inherited from BaseProtocol
(via ProcessProtocol
):
Method | connection |
Called when a connection is made. |
Instance Variable | connected |
Undocumented |
Parameters | |
proto | An IProtocol provider. |
executable | The file name (full path) to spawn. |
err | A constant belonging to StandardErrorBehavior that determines if stderr is logged or dropped. |
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.
Call IProtocol
provider's makeConnection method with an ITransport
provider.
Parameters | |
process | An IProcessTransport provider. |
If the process ends with error.ProcessDone
, this method calls the IProtocol
provider's connectionLost
with a error.ConnectionDone
See Also | |
ProcessProtocol.processEnded |