class GAIResolver: (source)
Implements interfaces: twisted.internet.interfaces.IHostnameResolver
IHostnameResolver
implementation that resolves hostnames by calling getaddrinfo
in a thread.
Method | __init__ |
Create a GAIResolver . |
Method | resolveHostName |
See IHostnameResolver.resolveHostName |
Instance Variable | _reactor |
Undocumented |
Instance Variable | _getThreadPool |
Undocumented |
Instance Variable | _getaddrinfo |
Undocumented |
Create a GAIResolver
.
Parameters | reactor | the reactor to schedule result-delivery on (type: IReactorThreads ) |
getThreadPool | a function to retrieve the thread pool to use for scheduling name resolutions. If not supplied, the use the given reactor 's thread pool. (type: 0-argument callable returning a twisted.python.threadpool.ThreadPool ) | |
getaddrinfo | a reference to the getaddrinfo to use - mainly parameterized for testing. (type: callable with the same signature as getaddrinfo ) |
See IHostnameResolver.resolveHostName
Parameters | resolutionReceiver | see interface |
hostName | see interface | |
portNumber | see interface | |
addressTypes | see interface | |
transportSemantics | see interface | |
Returns | see interface |