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

interface documentation

`class IConnector(Interface): (source)`

Known implementations: `twisted.internet.base.BaseConnector`, `twisted.names.srvconnect.SRVConnector`, `twisted.internet.testing._FakeConnector`

View In Hierarchy

Object used to interface between connections and protocols.

Each `IConnector` manages one connection.

Method | `connect` | Try to connect to remote address.
Method | `disconnect` | Disconnect regardless of the connection state.
Method | `getDestination` | Return destination this will try to connect to.
Method | `stopConnecting` | Stop attempting to connect.

def connect(): (source)

Try to connect to remote address.

def disconnect(): (source)

Disconnect regardless of the connection state.

If we are connected, disconnect, if we are trying to connect, stop trying.

def getDestination(): (source)

Return destination this will try to connect to.

Returns
`IAddress` | An object which provides `IAddress`.

def stopConnecting(): (source)

Stop attempting to connect.