class documentation
class DNSMixin: (source)
Known subclasses: twisted.names.dns.DNSDatagramProtocol, twisted.names.dns.DNSProtocol
Constructor: DNSMixin(controller, reactor)
DNS protocol mixin shared by UDP and TCP implementations.
| Method | __init__ |
Undocumented |
| Method | call |
Wrapper around reactor.callLater, mainly for test purpose. |
| Method | pick |
Return a unique ID for queries. |
| Class Variable | live |
Undocumented |
| Instance Variable | controller |
Undocumented |
| Instance Variable | id |
Undocumented |
| Method | _clear |
Clean the Deferred after a timeout. |
| Method | _query |
Send out a message with the given queries. |
| Instance Variable | _reactor |
A IReactorTime and IReactorUDP provider which will be used to issue DNS queries and manage request timeouts. |
Send out a message with the given queries.
| Parameters | |
queries:list of Query instances | The queries to transmit |
timeout:int or float | How long to wait before giving up |
id:int | Unique key for this request |
| write | One-parameter callback which writes the message |
| Returns | |
| Deferred | a Deferred which 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, ...). |
A IReactorTime and IReactorUDP provider which will be used to issue DNS queries and manage request timeouts.