class documentation
class DNSDatagramProtocol(DNSMixin, protocol.DatagramProtocol): (source)
Constructor: DNSDatagramProtocol(controller, reactor)
DNS protocol over UDP.
| Method | datagram |
Read a datagram, extract the message in it and trigger the associated Deferred. |
| Method | query |
Send out a message with the given queries. |
| Method | remove |
Mark message ID as no longer having duplication suppression. |
| Method | start |
Undocumented |
| Method | start |
Upon start, reset internal state. |
| Method | stop |
Stop protocol: reset state variables. |
| Method | write |
Send a message holding DNS queries. |
| Instance Variable | live |
Undocumented |
| Instance Variable | resends |
Undocumented |
| Instance Variable | transport |
Undocumented |
Inherited from DNSMixin:
| Method | __init__ |
Undocumented |
| Method | call |
Wrapper around reactor.callLater, mainly for test purpose. |
| Method | pick |
Return a unique ID for queries. |
| 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. |
Inherited from DatagramProtocol (via DNSMixin):
| Method | connection |
Called due to error from write in connected mode. |
| Method | log |
Return a prefix matching the class name, to identify log messages related to this protocol instance. |
Inherited from AbstractDatagramProtocol (via DNSMixin, DatagramProtocol):
| Method | __getstate__ |
Undocumented |
| Method | do |
Make sure startProtocol is called. |
| Method | do |
Make sure stopProtocol is called. |
| Method | make |
Make a connection to a transport and a server. |
| Class Variable | noisy |
Undocumented |
| Instance Variable | num |
Undocumented |
Send out a message with the given queries.
| Parameters | |
address:tuple of str and int | The address to which to send the query |
queries:list of Query instances | The queries to transmit |
| timeout | Undocumented |
| id | Undocumented |
| Returns | |
| Deferred | Undocumented |