twisted.test.stdio_test_halfclose.HalfCloseProtocol(protocol.Protocol) class documentationtwisted.test.stdio_test_halfclose
(View In Hierarchy)
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 | connectionMade | Signal the parent process that we're ready. | 
| Method | readConnectionLost | This is the desired event. Once it has happened, stop the reactor so the process will exit. | 
| Method | connectionLost | This may only be invoked after readConnectionLost.  If it 
happens otherwise, mark it as an error and shut down. | 
Inherited from Protocol:
| Method | logPrefix | Return a prefix matching the class name, to identify log messages related to this protocol instance. | 
| Method | dataReceived | Called whenever data is received. | 
Inherited from BaseProtocol (via Protocol):
| Method | makeConnection | Make a connection to a transport and a server. | 
This is the desired event. Once it has happened, stop the reactor so the process will exit.