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.
def connectionMade(self):

Signal the parent process that we're ready.

def readConnectionLost(self):

This is the desired event. Once it has happened, stop the reactor so the process will exit.

def connectionLost(self, reason):

This may only be invoked after readConnectionLost. If it happens otherwise, mark it as an error and shut down.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.