class documentation
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 | resolve |
See IHostnameResolver.resolveHostName |
Instance Variable | _getaddrinfo |
Undocumented |
Instance Variable | _get |
Undocumented |
Instance Variable | _reactor |
Undocumented |
Create a GAIResolver
.
Parameters | |
reactor:IReactorThreads | the reactor to schedule result-delivery on |
gettwisted.python.threadpool.ThreadPool | a function to retrieve the thread pool to use for scheduling name resolutions. If not supplied, the use the given reactor's thread pool. |
getaddrinfo:callable with the same signature as getaddrinfo | a reference to the getaddrinfo to use - mainly parameterized for testing. |
def resolveHostName(self, resolutionReceiver, hostName, portNumber=0, addressTypes=None, transportSemantics='TCP'):
(source)
¶
See IHostnameResolver.resolveHostName
Parameters | |
resolution | see interface |
host | see interface |
port | see interface |
address | see interface |
transport | see interface |
Returns | |
see interface |