Known subclasses: twisted.conch.ssh.session._ProtocolWrapper, 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.internet.endpoints._WrapIProtocol, twisted.internet.test.test_process._ShutdownCallbackProcessProtocol, twisted.internet.utils._BackRelay, twisted.internet.utils._EverythingGetter, twisted.internet.utils._ValueGetter, 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

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:

Method makeConnection Make a connection to a transport and a server.
Method connectionMade Called when a connection is made.
def childDataReceived(self, childFD, data):
def childConnectionLost(self, childFD):

Called when a file descriptor associated with the child process is closed.

ParameterschildFDThe file descriptor which was closed. (type: int)
def inConnectionLost(self):

This will be called when stdin is closed.

def outConnectionLost(self):
def errConnectionLost(self):
def processExited(self, reason):

This will be called when the subprocess exits.

def processEnded(self, reason):

Called when the child process exits and all file descriptors associated with it have been closed.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.