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 Failure passed to connectionLost.
Method connectionLost Called when the connection is shut down.
Instance Variable _done A Deferred which 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 runProtocolsWithReactor when 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.
reactor =
The reactor used in this test.
disconnectReason =
The Failure passed to connectionLost.
_done =
A Deferred which will be fired when the connection is lost.
def _setAttributes(self, reactor, done):

Set attributes on the protocol that are known only externally; this will be called by runProtocolsWithReactor when this protocol is instantiated.

ParametersreactorThe reactor used in this test.
doneA Deferred which will be fired when the connection is lost.
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.