twisted.test.test_tcp.ConnectionLostNotifyingProtocol(protocol.Protocol) class documentationtwisted.test.test_tcp
(View In Hierarchy)
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. |
None
until the connection is lost, then a reference to the reason passed to
connectionLost.