Package twisted :: Package protocols :: Module dns :: Class DNSDatagramProtocol
[frames | no frames]

Class DNSDatagramProtocol

AbstractDatagramProtocol --+    
                           |    
            DatagramProtocol --+
                               |
                              DNSDatagramProtocol


Method Summary
  __init__(self, controller)
  __getstate__(self)
  _clearFailed(self, deferred, id)
  datagramReceived(self, data, addr)
  pickID(self)
Deferred query(self, address, queries, timeout, id)
Send out a message with the given queries.
  stopProtocol(self)
Called when the transport is disconnected.
  writeMessage(self, message, address)
    Inherited from AbstractDatagramProtocol
  doStart(self)
Make sure startProtocol is called.
  doStop(self)
Make sure stopProtocol is called.
  makeConnection(self, transport)
Make a connection to a transport and a server.
  startProtocol(self)
Called when a transport is connected to this protocol.

Class Variable Summary
NoneType id = None                                                                  
NoneType liveMessages = None                                                                  
int reissue = 2                                                                     
NoneType resends = None                                                                  
int timeout = 10                                                                    
    Inherited from AbstractDatagramProtocol
str noisy = 'sure, why not'
int numPorts = 0                                                                     
NoneType transport = None                                                                  

Method Details

query(self, address, queries, timeout=10, id=None)

Send out a message with the given queries.
Parameters:
address - The address to which to send the query
           (type=tuple of str and int)
queries - The queries to transmit
           (type=list of Query instances)
Returns:
Deferred

stopProtocol(self)

Called when the transport is disconnected.

Will only be called once, after all ports are disconnected.
Overrides:
twisted.internet.protocol.AbstractDatagramProtocol.stopProtocol (inherited documentation)

Class Variable Details

id

Type:
NoneType
Value:
None                                                                  

liveMessages

Type:
NoneType
Value:
None                                                                  

reissue

Type:
int
Value:
2                                                                     

resends

Type:
NoneType
Value:
None                                                                  

timeout

Type:
int
Value:
10                                                                    

Generated by Epydoc 2.0 on Sat Sep 13 04:20:47 2003 http://epydoc.sf.net