class DNSProtocol(DNSMixin, protocol.Protocol): (source)
| Method | connectionLost |
Notify the controller that this protocol is no longer connected. |
| Method | connectionMade |
Connection is made: reset internal state, and notify the controller. |
| Method | dataReceived |
Undocumented |
| Method | query |
Send out a message with the given queries. |
| Method | writeMessage |
Send a message holding DNS queries. |
| Instance Variable | buffer |
Undocumented |
| Instance Variable | length |
Undocumented |
| Instance Variable | liveMessages |
Undocumented |
Inherited from DNSMixin:
| Method | __init__ |
Undocumented |
| Method | callLater |
Wrapper around reactor.callLater, mainly for test purpose. |
| Method | pickID |
Return a unique ID for queries. |
| Instance Variable | controller |
Undocumented |
| Instance Variable | id |
Undocumented |
| Method | _clearFailed |
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. |
| Parameters | |
queries:list of Query instances | The queries to transmit |
| timeout | Undocumented |
| Returns | |
| Deferred | Undocumented |