class twisted.internet.endpoints._SimpleHostnameResolver: (source)
Implements interfaces: twisted.internet.interfaces.IHostnameResolver
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 |
resolveHostName invokes to resolve hostnames.callable that accepts two arguments: the host to resolve and the port number to include in the result.)
Initiate a hostname resolution.
| Parameters | resolutionReceiver | an object that will receive each resolved address as it arrives. (type: IResolutionReceiver) |
| hostName | see interface | |
| portNumber | see interface | |
| addressTypes | Ignored in this implementation. | |
| transportSemantics | Ignored in this implementation. | |
| Returns | The resolution in progress. (type: IResolutionReceiver) | |