interface documentation

class IProcessProtocol(Interface): (source)

Known implementations: twisted.internet.protocol.ProcessProtocol

View In Hierarchy

Interface for process-related event handlers.
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 make​Connection Called when the process has been created.
Method process​Ended Called when the child process exits and all file descriptors associated with it have been closed.
Method process​Exited Called when the child process exits.
def childConnectionLost(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(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 makeConnection(process): (source)
Called when the process has been created.
Parameters
process:IProcessTransportAn object representing the process which has been created and associated with this protocol.
def processEnded(reason): (source)
Called when the child process exits and all file descriptors associated with it have been closed.
Parameters
reason:FailureA failure giving the reason the child process terminated. The type of exception for this failure is either twisted.internet.error.ProcessDone or twisted.internet.error.ProcessTerminated.
def processExited(reason): (source)
Called when the child process exits.
Parameters
reason:FailureA failure giving the reason the child process terminated. The type of exception for this failure is either twisted.internet.error.ProcessDone or twisted.internet.error.ProcessTerminated.
Present Since
8.2