Package twisted :: Package internet :: Module protocol :: Class ProcessProtocol
[frames | no frames]

Class ProcessProtocol

BaseProtocol --+
               |
              ProcessProtocol

Known Subclasses:
RemoteTryPP, ShellCommandPP

Processes have some additional methods besides receiving data.
Method Summary
  childConnectionLost(self, childFD)
  childDataReceived(self, childFD, data)
  errConnectionLost(self)
This will be called when stderr is closed.
  errReceived(self, data)
Some data was received from stderr.
  inConnectionLost(self)
This will be called when stdin is closed.
  outConnectionLost(self)
This will be called when stdout is closed.
  outReceived(self, data)
Some data was received from stdout.
  processEnded(self, reason)
This will be called when the subprocess is finished.

Method Details

errConnectionLost(self)

This will be called when stderr is closed.

errReceived(self, data)

Some data was received from stderr.

inConnectionLost(self)

This will be called when stdin is closed.

outConnectionLost(self)

This will be called when stdout is closed.

outReceived(self, data)

Some data was received from stdout.

processEnded(self, reason)

This will be called when the subprocess is finished.
Parameters:
reason
           (type=twisted.python.failure.Failure)

Generated by Epydoc 2.1 on Sun Dec 10 22:04:45 2006 http://epydoc.sf.net