class _SimpleHostnameResolver: (source)
Implements interfaces: twisted.internet.interfaces.IHostnameResolver
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. |
| 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. |
callable that accepts two arguments: the host to resolve and the port number to include in the result. =
(source)
resolveHostName invokes to resolve hostnames.