Class t.i.p.ProcessProtocol(BaseProtocol):

Part of twisted.internet.protocol View Source View In Hierarchy

Known subclasses: twisted.conch.ssh.session._ProtocolWrapper, twisted.conch.ssh.session.SSHSessionProcessProtocol, twisted.conch.stdio.TerminalProcessProtocol, twisted.internet.utils._BackRelay, twisted.internet.utils._EverythingGetter, twisted.internet.utils._ValueGetter, twisted.mail.alias.ProcessAliasProtocol, twisted.runner.procmon.LoggingProtocol, twisted.web.twcgi.CGIProcessProtocol, twisted.web2.stream._ProcessStreamerProtocol, twisted.web2.twcgi.CGIProcessProtocol (hide last 8 again) ... and 8 more

Implements interfaces: twisted.internet.interfaces.IProcessProtocol

Base process protocol implementation which does simple dispatching for stdin, stdout, and stderr file descriptors.

Split Table into Classes Show Methods in One Table

Line # Kind Name Docs
434 Method childDataReceived Called when data arrives from the child process.
441 Method outReceived Some data was received from stdout.
447 Method errReceived Some data was received from stderr.
453 Method childConnectionLost Called when a file descriptor associated with the child process is
462 Method inConnectionLost This will be called when stdin is closed.
468 Method outConnectionLost This will be called when stdout is closed.
474 Method errConnectionLost This will be called when stderr is closed.
480 Method processExited This will be called when the subprocess exits.
488 Method processEnded This will be called when the subprocess is finished.

Inherited from BaseProtocol:

Line # Kind Name Docs
341 Method makeConnection Make a connection to a transport and a server.
351 Method connectionMade Called when a connection is made.
Line # Kind Name Docs
453 Method childConnectionLost Called when a file descriptor associated with the child process is
434 Method childDataReceived Called when data arrives from the child process.
351 Method connectionMade Called when a connection is made.
474 Method errConnectionLost This will be called when stderr is closed.
447 Method errReceived Some data was received from stderr.
462 Method inConnectionLost This will be called when stdin is closed.
341 Method makeConnection Make a connection to a transport and a server.
468 Method outConnectionLost This will be called when stdout is closed.
441 Method outReceived Some data was received from stdout.
488 Method processEnded This will be called when the subprocess is finished.
480 Method processExited This will be called when the subprocess exits.
def childDataReceived(self, childFD, data): (source)
Called when data arrives from the child process.
ParameterschildFDThe file descriptor from which the data was received. (type: int )
dataThe data read from the child's file descriptor. (type: str )
def outReceived(self, data): (source)
Some data was received from stdout.
def errReceived(self, data): (source)
Some data was received from stderr.
def childConnectionLost(self, childFD): (source)
Called when a file descriptor associated with the child process is closed.
ParameterschildFDThe file descriptor which was closed. (type: int )
def inConnectionLost(self): (source)
This will be called when stdin is closed.
def outConnectionLost(self): (source)
This will be called when stdout is closed.
def errConnectionLost(self): (source)
This will be called when stderr is closed.
def processExited(self, reason): (source)
This will be called when the subprocess exits.
Parametersreason (type: twisted.python.failure.Failure )
def processEnded(self, reason): (source)
This will be called when the subprocess is finished.
Parametersreason (type: twisted.python.failure.Failure )
API Documentation for Twisted, generated by pydoctor at 2008-10-26 16:12:37.