twisted.names.dns.DNSMixin(object) class documentationtwisted.names.dns
(View In Hierarchy)
Known subclasses: twisted.names.dns.DNSDatagramProtocol, twisted.names.dns.DNSProtocol
DNS protocol mixin shared by UDP and TCP implementations.
| Method | __init__ | Undocumented | 
| Method | pickID | Return a unique ID for queries. | 
| Method | callLater | Wrapper around reactor.callLater, mainly for test purpose. | 
| Instance Variable | _reactor | A IReactorTimeandIReactorUDPprovider which will be used to issue DNS queries and manage request 
timeouts. | 
| Method | _query | Send out a message with the given queries. | 
| Method | _clearFailed | Clean the Deferred after a timeout. | 
IReactorTime
and IReactorUDP
provider which will be used to issue DNS queries and manage request 
timeouts.
  Wrapper around reactor.callLater, mainly for test purpose.
Send out a message with the given queries.
| Parameters | queries | The queries to transmit (type: listofQueryinstances) | 
| timeout | How long to wait before giving up (type: intorfloat) | |
| id | Unique key for this request (type: int) | |
| writeMessage | One-parameter callback which writes the message (type: callable) | |
| Returns | a Deferredwhich will be fired with the result of the query, 
or errbacked with any errors that could happen (exceptions during writing 
of the query, timeout errors, ...). (type:Deferred) | |