Implements interfaces: twisted.internet.interfaces.ITLSTransport

A mixin for twisted.internet.abstract.FileDescriptor which adds an ITLSTransport implementation.

Instance Variable TLS A flag indicating whether TLS is currently in use on this transport. This is not a good way for applications to check for TLS, instead use twisted.internet.interfaces.ISSLTransport.
Method startTLS
Method write Write some bytes to this connection, passing them through a TLS layer if necessary, or discarding them if the connection has already been lost.
Method writeSequence Write some bytes to this connection, scatter/gather-style, passing them through a TLS layer if necessary, or discarding them if the connection has already been lost.
Method loseConnection Close this connection after writing all pending data.
Method registerProducer Register a producer.
Method unregisterProducer Unregister a producer.
TLS =
A flag indicating whether TLS is currently in use on this transport. This is not a good way for applications to check for TLS, instead use twisted.internet.interfaces.ISSLTransport.
def startTLS(self, ctx, normal=True):
def write(self, bytes):

Write some bytes to this connection, passing them through a TLS layer if necessary, or discarding them if the connection has already been lost.

def writeSequence(self, iovec):

Write some bytes to this connection, scatter/gather-style, passing them through a TLS layer if necessary, or discarding them if the connection has already been lost.

def loseConnection(self):

Close this connection after writing all pending data.

If TLS has been negotiated, perform a TLS shutdown.

def registerProducer(self, producer, streaming):

Register a producer.

If TLS is enabled, the TLS connection handles this.

def unregisterProducer(self):

Unregister a producer.

If TLS is enabled, the TLS connection handles this.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.