module documentation
Class AccumulatingProtocol A protocol which collects the bytes it receives and closes its connection after receiving a certain minimum of data.
Class ClientNegotiationFactory A ClientFactory that has a set of acceptable protocols for NPN/ALPN negotiation.
Class DeterministicTLSMemoryBIOTests Test for the implementation of ISSLTransport which runs over another transport.
Class HandshakeCallbackContextFactory HandshakeCallbackContextFactory is a factory for SSL contexts which allows applications to get notification when the SSL handshake completes.
Class NonStreamingProducerTests Non-streaming producers can be adapted into being streaming producers.
Class ServerNegotiationFactory A ServerFactory that has a set of acceptable protocols for NPN/ALPN negotiation.
Class TLSMemoryBIOFactoryTests Ensure TLSMemoryBIOFactory logging acts correctly.
Class TLSMemoryBIOTests Tests for the implementation of ISSLTransport which runs over another ITransport.
Class TLSProducerTests The TLS transport must support the IConsumer interface.
Function buildTLSProtocol Create a protocol hooked up to a TLS transport hooked up to a StringTransport.
Function handshakingClientAndServer Construct a client and server TLSMemoryBIOProtocol connected by an IO pump.
def buildTLSProtocol(server=False, transport=None, fakeConnection=None, serverMethod=None): (source)

Create a protocol hooked up to a TLS transport hooked up to a StringTransport.

Parameters
serverUndocumented
transportUndocumented
fakeConnectionUndocumented
serverMethodThe TLS method accepted by the server-side and used by the created protocol. Set to to None to use the default method used by your OpenSSL library.
def handshakingClientAndServer(clientGreetingData=None, clientAbortAfterHandshake=False): (source)

Construct a client and server TLSMemoryBIOProtocol connected by an IO pump.

Parameters
clientGreetingDataUndocumented
clientAbortAfterHandshakeUndocumented
greetingData:bytesThe data which should be written in connectionMade.
Returns
3-tuple of client, server, twisted.test.iosim.IOPump