t.i.b.ThreadedResolver : class documentation

Part of twisted.internet.base View Source View In Hierarchy

Known subclasses: twisted.names.client.ThreadedResolver

Implements interfaces: twisted.internet.interfaces.IResolverSimple

Undocumented
Method __init__ Undocumented
Method getHostByName Resolve the domain name name into an IP address.
Method _fail Undocumented
Method _cleanup Undocumented
Method _checkTimeout Undocumented
def __init__(self, reactor): (source)
Undocumented
def _fail(self, name, err): (source)
Undocumented
def _cleanup(self, name, lookupDeferred): (source)
Undocumented
def _checkTimeout(self, result, name, lookupDeferred): (source)
Undocumented
def getHostByName(self, name, timeout=(1, 3, 11, 45)): (source)
Resolve the domain name name into an IP address.
Parametersname (type: str )
timeout (type: tuple )
ReturnsThe callback of the Deferred that is returned will be passed a string that represents the IP address of the specified name, or the errback will be called if the lookup times out. If multiple types of address records are associated with the name, A6 records will be returned in preference to AAAA records, which will be returned in preference to A records. If there are multiple records of the type to be returned, one will be selected at random. (type: twisted.internet.defer.Deferred )
Raisestwisted.internet.defer.TimeoutErrorRaised (asynchronously) if the name cannot be resolved within the specified timeout period.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 15:57:47.