interface documentation
class ITLSTransport(ITCPTransport): (source)
Known implementations: twisted.internet.iocpreactor.tcp.Connection
, twisted.internet.tcp.Connection
A TCP transport that supports switching to TLS midstream.
Once TLS mode is started the transport will implement ISSLTransport
.
Method | start |
Initiate TLS negotiation. |
Inherited from ITCPTransport
:
Method | abort |
Close the connection abruptly. |
Method | get |
Returns IPv4Address or IPv6Address . |
Method | get |
Returns IPv4Address or IPv6Address . |
Method | get |
Return if SO_KEEPALIVE is enabled. |
Method | get |
Return if TCP_NODELAY is enabled. |
Method | lose |
Half-close the write side of a TCP connection. |
Method | set |
Enable/disable SO_KEEPALIVE. |
Method | set |
Enable/disable TCP_NODELAY. |
Inherited from ITransport
(via ITCPTransport
):
Method | lose |
Close my connection, after writing all pending data. |
Method | write |
Write some data to the physical connection, in sequence, in a non-blocking fashion. |
Method | write |
Write an iterable of byte strings to the physical connection. |
def startTLS(contextFactory:
Union[ IOpenSSLClientConnectionCreator, IOpenSSLServerConnectionCreator]
):
(source)
¶
Initiate TLS negotiation.
Parameters | |
contextIOpenSSLClientConnectionCreator 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 implementor of IOpenSSLContextFactory . | An object which creates appropriately configured TLS connections. For clients, use |