class ProcessProtocol(BaseProtocol): (source)
Known subclasses: twisted.conch.ssh.session._ProtocolWrapper
, twisted.conch.ssh.session.SSHSessionProcessProtocol
, twisted.conch.stdio.TerminalProcessProtocol
, twisted.internet.endpoints._WrapIProtocol
, twisted.internet.utils._BackRelay
, twisted.internet.utils._EverythingGetter
, twisted.internet.utils._ValueGetter
, twisted.mail.alias.ProcessAliasProtocol
, twisted.runner.procmon.LoggingProtocol
, twisted.trial._dist.worker.LocalWorker
, twisted.web.twcgi.CGIProcessProtocol
Implements interfaces: twisted.internet.interfaces.IProcessProtocol
Base process protocol implementation which does simple dispatching for stdin, stdout, and stderr file descriptors.
Method | childDataReceived |
Called when data arrives from the child process. |
Method | outReceived |
Some data was received from stdout. |
Method | errReceived |
Some data was received from stderr. |
Method | childConnectionLost |
Called when a file descriptor associated with the child process is closed. |
Method | inConnectionLost |
This will be called when stdin is closed. |
Method | outConnectionLost |
This will be called when stdout is closed. |
Method | errConnectionLost |
This will be called when stderr is closed. |
Method | processExited |
This will be called when the subprocess exits. |
Method | processEnded |
Called when the child process exits and all file descriptors associated with it have been closed. |
Inherited from BaseProtocol
:
Instance Variable | connected |
Undocumented |
Instance Variable | transport |
Undocumented |
Method | makeConnection |
Make a connection to a transport and a server. |
Method | connectionMade |
Called when a connection is made. |
twisted.conch.ssh.session._ProtocolWrapper
, twisted.conch.ssh.session.SSHSessionProcessProtocol
, twisted.conch.stdio.TerminalProcessProtocol
, twisted.internet.utils._BackRelay
, twisted.runner.procmon.LoggingProtocol
, twisted.trial._dist.worker.LocalWorker
, twisted.web.twcgi.CGIProcessProtocol
Some data was received from stdout.
Parameters | data | Undocumented (type: bytes ) |
twisted.conch.ssh.session.SSHSessionProcessProtocol
, twisted.conch.stdio.TerminalProcessProtocol
, twisted.runner.procmon.LoggingProtocol
, twisted.trial._dist.worker.LocalWorker
, twisted.web.twcgi.CGIProcessProtocol
Some data was received from stderr.
Parameters | data | Undocumented (type: bytes ) |
twisted.conch.stdio.TerminalProcessProtocol
Called when a file descriptor associated with the child process is closed.
Parameters | childFD | The file descriptor which was closed. (type: int ) |
twisted.conch.ssh.session.SSHSessionProcessProtocol
This will be called when stdout is closed.
twisted.conch.ssh.session.SSHSessionProcessProtocol
This will be called when stderr is closed.
This will be called when the subprocess exits.
Parameters | reason | Undocumented (type: twisted.python.failure.Failure ) |
twisted.conch.ssh.session._ProtocolWrapper
, twisted.conch.ssh.session.SSHSessionProcessProtocol
, twisted.conch.stdio.TerminalProcessProtocol
, twisted.internet.endpoints._WrapIProtocol
, twisted.internet.utils._BackRelay
, twisted.internet.utils._EverythingGetter
, twisted.internet.utils._ValueGetter
, twisted.mail.alias.ProcessAliasProtocol
, twisted.runner.procmon.LoggingProtocol
, twisted.trial._dist.worker.LocalWorker
, twisted.web.twcgi.CGIProcessProtocol
Called when the child process exits and all file descriptors associated with it have been closed.
Parameters | reason | Undocumented (type: twisted.python.failure.Failure ) |