twisted.internet.endpoints._SimpleHostnameResolver(object)
class documentationtwisted.internet.endpoints
View Source
(View In Hierarchy)
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. (type: A callable
that accepts two arguments: the host to resolve and the port number to
include in the result.) |
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.)
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 ) |