class documentation

class StartTLSClientEndpoint: (source)

Implements interfaces: twisted.internet.interfaces.IStreamClientEndpoint

View In Hierarchy

An endpoint which wraps another one and adds a TLS layer immediately when connections are set up.

Method __init__ Undocumented
Method connect Establish a connection using a protocol build by factory and immediately start TLS on it. Return a Deferred which fires with the protocol instance.
Instance Variable contextFactory A ContextFactory to use to do TLS.
Instance Variable wrapped A IStreamClientEndpoint provider which will be used to really set up connections.
def __init__(self, wrapped, contextFactory): (source)

Undocumented

def connect(self, factory): (source)

Establish a connection using a protocol build by factory and immediately start TLS on it. Return a Deferred which fires with the protocol instance.

contextFactory = (source)

A ContextFactory to use to do TLS.

A IStreamClientEndpoint provider which will be used to really set up connections.