t.i._.ConnectionMixin(object) : class documentation

Part of twisted.internet._newtls View Source View In Hierarchy

Implements interfaces: twisted.internet.interfaces.ITLSTransport

A mixin for twisted.internet.abstract.FileDescriptor which adds an ITLSTransport implementation.
Instance VariablesTLSA 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 ISSLTransport.providedBy.
_tlsWaitingIf TLS has been requested but the write buffer for non-TLS data still needs to be flushed, this is set to a _TLSDelayed instance which will buffer data that must only be sent once TLS has been started.
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 doWrite Write out some data from the send buffer.
def startTLS(self, ctx, normal=True): (source)
See AlsoITLSTransport.startTLS
def write(self, bytes): (source)
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): (source)
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): (source)
Close this connection after writing all pending data.

If TLS has been negotiated, perform a TLS shutdown.

def doWrite(self): (source)
Write out some data from the send buffer.

If the buffer becomes empty and TLS has been requested but not yet enabled, enable it.

API Documentation for Twisted, generated by pydoctor at 2011-11-17 13:59:56.