Known implementations: twisted.internet._newtls.ConnectionMixin, twisted.internet.iocpreactor.tcp.Connection

A TCP transport that supports switching to TLS midstream.

Once TLS mode is started the transport will implement ISSLTransport.

Method startTLS Initiate TLS negotiation.

Inherited from ITransport (via ITCPTransport):

Method write Write some data to the physical connection, in sequence, in a non-blocking fashion.
Method writeSequence Write a list of strings to the physical connection.
Method loseConnection Close my connection, after writing all pending data.

Inherited from ITransport (via ITCPTransport):

Method write Write some data to the physical connection, in sequence, in a non-blocking fashion.
Method writeSequence Write a list of strings to the physical connection.
Method loseConnection Close my connection, after writing all pending data.
def startTLS(contextFactory): (source)

Initiate TLS negotiation.

ParameterscontextFactoryAn object which creates appropriately configured TLS connections.

For clients, use twisted.internet.ssl.optionsForClientTLS; for servers, use twisted.internet.ssl.CertificateOptions.

(type: IOpenSSLClientConnectionCreator or IOpenSSLServerConnectionCreator, depending on whether this ITLSTransport is a server or not. If the appropriate interface is not provided by the value given for contextFactory, it must be an old-style twisted.internet.ssl.ContextFactory or similar.)
API Documentation for Twisted, generated by pydoctor at 2015-05-24 20:04:00.