Known subclasses: twisted.test.test_tcp.HandleSavingProtocol

Protocol which fires a Deferred which was previously passed to its initializer when the connection is lost.

Instance Variable onConnectionLost The Deferred which will be fired in connectionLost.
Instance Variable lostConnectionReason None until the connection is lost, then a reference to the reason passed to connectionLost.
Method __init__ Undocumented
Method connectionLost Called when the connection is 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.
Method connectionMade Called when a connection is made.
onConnectionLost =
The Deferred which will be fired in connectionLost.
lostConnectionReason =
None until the connection is lost, then a reference to the reason passed to connectionLost.
def __init__(self, onConnectionLost):
Undocumented
def connectionLost(self, reason):

Called when the connection is shut down.

Clear any circular references here, and any external references to this Protocol. The connection has been closed.

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