class documentation

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

View In Hierarchy

Base process protocol implementation which does simple dispatching for stdin, stdout, and stderr file descriptors.
Method child​Connection​Lost Called when a file descriptor associated with the child process is closed.
Method child​Data​Received Called when data arrives from the child process.
Method err​Connection​Lost This will be called when stderr is closed.
Method err​Received Some data was received from stderr.
Method in​Connection​Lost This will be called when stdin is closed.
Method out​Connection​Lost This will be called when stdout is closed.
Method out​Received Some data was received from stdout.
Method process​Ended Called when the child process exits and all file descriptors associated with it have been closed.
Method process​Exited This will be called when the subprocess exits.

Inherited from BaseProtocol:

Method connection​Made Called when a connection is made.
Method make​Connection Make a connection to a transport and a server.
Instance Variable connected Undocumented
Instance Variable transport Undocumented
def childConnectionLost(self, childFD): (source)
Called when a file descriptor associated with the child process is closed.
Parameters
child​FD:intThe file descriptor which was closed.
def childDataReceived(self, childFD, data): (source)
Called when data arrives from the child process.
Parameters
child​FD:intThe file descriptor from which the data was received.
data:bytesThe data read from the child's file descriptor.
def errConnectionLost(self): (source)
This will be called when stderr is closed.
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 processExited(self, reason): (source)
This will be called when the subprocess exits.
Parameters
reason:twisted.python.failure.FailureUndocumented