class documentation

class TestHandshakeListener(TestProtocol): (source)

Implements interfaces: twisted.internet.interfaces.IHandshakeListener

View In Hierarchy

A Protocol that implements IHandshakeListener and records the number of times its handshakeCompleted method has been called.

Method __init__ Undocumented
Method handshakeCompleted Called when a TLS handshake has completed. Implemented per IHandshakeListener
Instance Variable handshakeCompletedCalls The number of times handshakeCompleted

Inherited from TestProtocol:

Method connectionLost Called when the connection is shut down.
Method connectionMade Called when a connection is made.
Method dataReceived Called whenever data is received.
Method logPrefix Return a prefix matching the class name, to identify log messages related to this protocol instance.
Instance Variable connectionMadeCalls Undocumented
Instance Variable connectionsLost Undocumented
Instance Variable data Undocumented

Inherited from Protocol (via TestProtocol):

Class Variable factory Undocumented

Inherited from BaseProtocol (via TestProtocol, Protocol):

Method makeConnection Make a connection to a transport and a server.
Instance Variable connected Undocumented
Instance Variable transport Undocumented
def handshakeCompleted(self): (source)

Called when a TLS handshake has completed. Implemented per IHandshakeListener

handshakeCompletedCalls: int = (source)

The number of times handshakeCompleted