Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`internet`.`_newtls`.`ConnectionMixin``

class documentation

`class ConnectionMixin: (source)`

Known subclasses: `twisted.internet.tcp.Connection`

View In Hierarchy

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

Method | `loseConnection` | Close this connection after writing all pending data.
Method | `registerProducer` | Register a producer.
Method | `startTLS` | No summary
Method | `unregisterProducer` | Unregister a producer.
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.
Constant | `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 loseConnection(self): (source)

Close this connection after writing all pending data.

If TLS has been negotiated, perform a TLS shutdown.

def registerProducer(self, producer, streaming): (source)

Register a producer.

If TLS is enabled, the TLS connection handles this.

def startTLS(self, ctx, normal=True): (source)

See Also
`ITLSTransport.startTLS`

def unregisterProducer(self): (source)

Unregister a producer.

If TLS is enabled, the TLS connection handles this.

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.

TLS: `bool` = (source)

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`.

Value

    False