class documentation

class twisted.internet.endpoints._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.
Instance Variable _nameResolution the callable resolveHostName invokes to resolve hostnames.
Class Variable _log Undocumented
_nameResolution = (source)
the callable resolveHostName invokes to resolve hostnames.
(type: A callable that accepts two arguments: the host to resolve and the port number to include in the result.)
_log = (source)

Undocumented

def __init__(self, nameResolution): (source)

Create a _SimpleHostnameResolver instance.

def resolveHostName(self, resolutionReceiver, hostName, portNumber=0, addressTypes=None, transportSemantics='TCP'): (source)

Initiate a hostname resolution.

ParametersresolutionReceiveran object that will receive each resolved address as it arrives. (type: IResolutionReceiver)
hostNamesee interface
portNumbersee interface
addressTypesIgnored in this implementation.
transportSemanticsIgnored in this implementation.
ReturnsThe resolution in progress. (type: IResolutionReceiver)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.