class ProcessProtocol(BaseProtocol): (source)
Known subclasses: twisted.conch.ssh.session.SSHSessionProcessProtocol
, twisted.conch.stdio.TerminalProcessProtocol
, twisted.conch.test.test_cftp.SFTPTestProcess
, twisted.conch.test.test_conch.ConchTestForwardingProcess
, twisted.conch.test.test_conch.ConchTestOpenSSHProcess
, twisted.mail.alias.ProcessAliasProtocol
, twisted.python.test.test_sendmsg.StartStopProcessProtocol
, twisted.python.test.test_util.PasswordTestingProcessProtocol
, twisted.runner.procmon.LoggingProtocol
, twisted.test.test_internet.ChildResolveProtocol
, twisted.test.test_process.Accumulator
, twisted.test.test_process.ClosingPipesProcessProtocol
, twisted.test.test_process.EchoProtocol
, twisted.test.test_process.FDChecker
, twisted.test.test_process.SignalProtocol
, twisted.test.test_process.StubProcessProtocol
, twisted.test.test_process.TestProcessProtocol
, twisted.test.test_process.TrivialProcessProtocol
, twisted.test.test_process.TwoProcessProtocol
, twisted.test.test_process.UtilityProcessProtocol
, twisted.test.test_stdio.StandardIOTestProcessProtocol
, twisted.test.test_threads.ThreadStartupProcessProtocol
, twisted.trial._dist.worker.LocalWorker
, twisted.web.twcgi.CGIProcessProtocol
, twisted.conch.ssh.session._ProtocolWrapper
, twisted.internet.endpoints._WrapIProtocol
, twisted.internet.test.test_process._ShutdownCallbackProcessProtocol
, 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. |
Class 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.TerminalProcessProtocol
, twisted.test.test_process.FDChecker
, twisted.test.test_process.TestProcessProtocol
Called when a file descriptor associated with the child process is closed.
Parameters | |
childint | The file descriptor which was closed. |
twisted.python.test.test_util.PasswordTestingProcessProtocol
, twisted.test.test_process.FDChecker
, twisted.test.test_process.TestProcessProtocol
, twisted.test.test_stdio.StandardIOTestProcessProtocol
, twisted.trial._dist.worker.LocalWorker
, twisted.internet.endpoints._WrapIProtocol
, twisted.internet.test.test_process._ShutdownCallbackProcessProtocol
twisted.conch.ssh.session.SSHSessionProcessProtocol
, twisted.test.test_process.Accumulator
, twisted.test.test_process.StubProcessProtocol
This will be called when stderr is closed.
twisted.conch.ssh.session.SSHSessionProcessProtocol
, twisted.conch.stdio.TerminalProcessProtocol
, twisted.conch.test.test_cftp.SFTPTestProcess
, twisted.conch.test.test_conch.ConchTestOpenSSHProcess
, twisted.python.test.test_sendmsg.StartStopProcessProtocol
, twisted.runner.procmon.LoggingProtocol
, twisted.test.test_internet.ChildResolveProtocol
, twisted.test.test_process.Accumulator
, twisted.test.test_process.ClosingPipesProcessProtocol
, twisted.test.test_process.SignalProtocol
, twisted.test.test_process.StubProcessProtocol
, twisted.test.test_process.TrivialProcessProtocol
, twisted.test.test_threads.ThreadStartupProcessProtocol
, twisted.trial._dist.worker.LocalWorker
, twisted.web.twcgi.CGIProcessProtocol
Some data was received from stderr.
Parameters | |
data:bytes | Undocumented |
twisted.test.test_process.StubProcessProtocol
This will be called when stdin is closed.
twisted.conch.ssh.session.SSHSessionProcessProtocol
, twisted.test.test_process.Accumulator
, twisted.test.test_process.StubProcessProtocol
This will be called when stdout is closed.
twisted.conch.ssh.session.SSHSessionProcessProtocol
, twisted.conch.stdio.TerminalProcessProtocol
, twisted.conch.test.test_cftp.SFTPTestProcess
, twisted.conch.test.test_conch.ConchTestOpenSSHProcess
, twisted.python.test.test_sendmsg.StartStopProcessProtocol
, twisted.runner.procmon.LoggingProtocol
, twisted.test.test_internet.ChildResolveProtocol
, twisted.test.test_process.Accumulator
, twisted.test.test_process.ClosingPipesProcessProtocol
, twisted.test.test_process.EchoProtocol
, twisted.test.test_process.SignalProtocol
, twisted.test.test_process.StubProcessProtocol
, twisted.test.test_process.TrivialProcessProtocol
, twisted.test.test_process.TwoProcessProtocol
, twisted.test.test_process.UtilityProcessProtocol
, twisted.test.test_threads.ThreadStartupProcessProtocol
, twisted.trial._dist.worker.LocalWorker
, twisted.web.twcgi.CGIProcessProtocol
, twisted.conch.ssh.session._ProtocolWrapper
, twisted.internet.utils._BackRelay
Some data was received from stdout.
Parameters | |
data:bytes | Undocumented |
twisted.conch.ssh.session.SSHSessionProcessProtocol
, twisted.conch.stdio.TerminalProcessProtocol
, twisted.conch.test.test_cftp.SFTPTestProcess
, twisted.conch.test.test_conch.ConchTestForwardingProcess
, twisted.conch.test.test_conch.ConchTestOpenSSHProcess
, twisted.mail.alias.ProcessAliasProtocol
, twisted.python.test.test_sendmsg.StartStopProcessProtocol
, twisted.python.test.test_util.PasswordTestingProcessProtocol
, twisted.runner.procmon.LoggingProtocol
, twisted.test.test_internet.ChildResolveProtocol
, twisted.test.test_process.Accumulator
, twisted.test.test_process.ClosingPipesProcessProtocol
, twisted.test.test_process.EchoProtocol
, twisted.test.test_process.FDChecker
, twisted.test.test_process.SignalProtocol
, twisted.test.test_process.TestProcessProtocol
, twisted.test.test_process.TrivialProcessProtocol
, twisted.test.test_process.TwoProcessProtocol
, twisted.test.test_process.UtilityProcessProtocol
, twisted.test.test_stdio.StandardIOTestProcessProtocol
, twisted.test.test_threads.ThreadStartupProcessProtocol
, twisted.trial._dist.worker.LocalWorker
, twisted.web.twcgi.CGIProcessProtocol
, twisted.conch.ssh.session._ProtocolWrapper
, twisted.internet.endpoints._WrapIProtocol
, twisted.internet.test.test_process._ShutdownCallbackProcessProtocol
, twisted.internet.utils._BackRelay
, twisted.internet.utils._EverythingGetter
, twisted.internet.utils._ValueGetter
Called 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 |