class ProcessProtocol(BaseProtocol): (source)
Known subclasses: twisted.conch.ssh.session.SSHSessionProcessProtocol, twisted.conch.stdio.TerminalProcessProtocol, twisted.mail.alias.ProcessAliasProtocol, twisted.runner.procmon.LoggingProtocol, twisted.trial._dist.worker.LocalWorker, twisted.web.twcgi.CGIProcessProtocol, twisted.conch.ssh.session._ProtocolWrapper, twisted.internet.endpoints._WrapIProtocol, twisted.internet.utils._BackRelay, twisted.internet.utils._EverythingGetter, twisted.internet.utils._ValueGetter
Implements interfaces: twisted.internet.interfaces.IProcessProtocol
Base process protocol implementation which does simple dispatching for stdin, stdout, and stderr file descriptors.
| Method | child |
Called when a file descriptor associated with the child process is closed. |
| Method | child |
Called when data arrives from the child process. |
| 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 |
Called when the child process exits and all file descriptors associated with it have been closed. |
| Method | process |
This will be called when the subprocess exits. |
| Instance Variable | transport |
Undocumented |
Inherited from BaseProtocol:
| Method | connection |
Called when a connection is made. |
| Method | make |
Make a connection to a transport and a server. |
| Instance Variable | connected |
Undocumented |
twisted.conch.stdio.TerminalProcessProtocolCalled when a file descriptor associated with the child process is closed.
| Parameters | |
childint | The file descriptor which was closed. |
Called when data arrives from the child process.
| Parameters | |
childint | The file descriptor from which the data was received. |
data:bytes | The data read from the child's file descriptor. |
twisted.conch.ssh.session.SSHSessionProcessProtocolThis will be called when stderr is closed.
twisted.conch.ssh.session.SSHSessionProcessProtocol, twisted.conch.stdio.TerminalProcessProtocol, twisted.runner.procmon.LoggingProtocol, twisted.trial._dist.worker.LocalWorker, twisted.web.twcgi.CGIProcessProtocolSome data was received from stderr.
twisted.conch.ssh.session.SSHSessionProcessProtocolThis will be called when stdout is closed.
twisted.conch.ssh.session.SSHSessionProcessProtocol, twisted.conch.stdio.TerminalProcessProtocol, twisted.runner.procmon.LoggingProtocol, twisted.trial._dist.worker.LocalWorker, twisted.web.twcgi.CGIProcessProtocol, twisted.conch.ssh.session._ProtocolWrapper, twisted.internet.utils._BackRelaySome data was received from stdout.
twisted.conch.ssh.session.SSHSessionProcessProtocol, twisted.conch.stdio.TerminalProcessProtocol, twisted.mail.alias.ProcessAliasProtocol, twisted.runner.procmon.LoggingProtocol, twisted.trial._dist.worker.LocalWorker, twisted.web.twcgi.CGIProcessProtocol, twisted.conch.ssh.session._ProtocolWrapper, twisted.internet.endpoints._WrapIProtocol, twisted.internet.utils._BackRelay, twisted.internet.utils._EverythingGetter, twisted.internet.utils._ValueGetterCalled when the child process exits and all file descriptors associated with it have been closed.
| Parameters | |
reason:twisted.python.failure.Failure | Undocumented |
This will be called when the subprocess exits.
| Parameters | |
reason:twisted.python.failure.Failure | Undocumented |