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

class documentation

`class _SimpleHostnameResolver: (source)`

Implements interfaces: `twisted.internet.interfaces.IHostnameResolver`

View In Hierarchy

An `IHostnameResolver` provider that invokes a provided callable to resolve hostnames.

Method | `__init__` | Create a `_SimpleHostnameResolver` instance.
Method | `resolveHostName` | Initiate a hostname resolution.
Class Variable | `_log` | Undocumented
Instance Variable | `_nameResolution` | the callable `resolveHostName` invokes to resolve hostnames.

def __init__(self, nameResolution): (source)

Create a `_SimpleHostnameResolver` instance.

def resolveHostName(self, resolutionReceiver, hostName, portNumber=0, addressTypes=None, transportSemantics='TCP'): (source)
from `twisted.internet.interfaces.IHostnameResolver`

Initiate a hostname resolution.

Parameters
resolutionReceiver:`IResolutionReceiver` | an object that will receive each resolved address as it arrives.
hostName | see interface
portNumber | see interface
addressTypes | Ignored in this implementation.
transportSemantics | Ignored in this implementation.
Returns
`IResolutionReceiver` | The resolution in progress.

_log = (source)

Undocumented

_nameResolution: A `callable` that accepts two arguments: the host to resolve and the port number to include in the result. = (source)

the callable `resolveHostName` invokes to resolve hostnames.