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 resolve​Host​Name Initiate a hostname resolution.
Class Variable _log Undocumented
Instance Variable _name​Resolution 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)
Initiate a hostname resolution.
Parameters
resolution​Receiver:IResolutionReceiveran object that will receive each resolved address as it arrives.
host​Namesee interface
port​Numbersee interface
address​TypesIgnored in this implementation.
transport​SemanticsIgnored in this implementation.
Returns
IResolutionReceiverThe 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.