class documentation
class HalfCloseProtocol(protocol.Protocol): (source)
Implements interfaces: twisted.internet.interfaces.IHalfCloseableProtocol
A protocol to hook up to stdio and observe its transport being half-closed. If all goes as expected, exitCode will be set to 0; otherwise it will be set to 1 to indicate failure.
Method | connection |
This may only be invoked after readConnectionLost. If it happens otherwise, mark it as an error and shut down. |
Method | connection |
Signal the parent process that we're ready. |
Method | read |
This is the desired event. Once it has happened, stop the reactor so the process will exit. |
Method | write |
Notification of the write connection being closed. |
Instance Variable | exit |
Undocumented |
Inherited from Protocol
:
Method | data |
Called whenever data is received. |
Method | log |
Return a prefix matching the class name, to identify log messages related to this protocol instance. |
Class Variable | factory |
Undocumented |
Inherited from BaseProtocol
(via Protocol
):
Method | make |
Make a connection to a transport and a server. |
Instance Variable | connected |
Undocumented |
Instance Variable | transport |
Undocumented |
This may only be invoked after readConnectionLost. If it happens otherwise, mark it as an error and shut down.