twisted.internet.test.connectionmixins.ConnectableProtocol(Protocol) class documentationtwisted.internet.test.connectionmixins
(View In Hierarchy)
Known subclasses: twisted.internet.test.connectionmixins.ClosingLaterProtocol, twisted.internet.test.test_newtls.ProducerProtocol, twisted.internet.test.test_tcp.AbortServerWritingProtocol, twisted.internet.test.test_tcp.BaseAbortingClient, twisted.internet.test.test_tcp.EventualNoReadServer, twisted.internet.test.test_tcp.NoReadServer, twisted.internet.test.test_tcp.ProducerAbortingClient, twisted.internet.test.test_tcp.ServerAbortsThenLoses, twisted.internet.test.test_tcp.ServerAbortsTwice, twisted.internet.test.test_tcp.StreamingProducerClient, twisted.internet.test.test_unix.ReceiveFileDescriptor, twisted.internet.test.test_unix.SendFileDescriptor
A protocol to be used with runProtocolsWithReactor.
The protocol and its pair should eventually disconnect from each other.
| Instance Variable | reactor | The reactor used in this test. | 
| Instance Variable | disconnectReason | The Failurepassed toconnectionLost. | 
| Method | connectionLost | Called when the connection is shut down. | 
| Instance Variable | _done | A Deferredwhich will be fired when the connection is lost. | 
| Method | _setAttributes | Set attributes on the protocol that are known only externally; this will
be called by runProtocolsWithReactorwhen this protocol is instantiated. | 
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. | 
Set attributes on the protocol that are known only externally; this will
be called by runProtocolsWithReactor
when this protocol is instantiated.
| Parameters | reactor | The reactor used in this test. | 
| done | A Deferredwhich will be fired when the connection is lost. | 
Called when the connection is shut down.
Clear any circular references here, and any external references to this Protocol. The connection has been closed.