Class t.n.d.DNSDatagramProtocol(protocol.DatagramProtocol):

Part of twisted.names.dns View Source View In Hierarchy

No class docstring
Method __init__ Undocumented
Method pickID Undocumented
Method stopProtocol Called when the transport is disconnected.
Method startProtocol Called when a transport is connected to this protocol.
Method writeMessage Undocumented
Method startListening Undocumented
Method datagramReceived Called when a datagram is received.
Method removeResend Mark message ID as no longer having duplication suppression.
Method query Send out a message with the given queries.
Method _clearFailed Undocumented

Inherited from DatagramProtocol:

Method connectionRefused Called due to error from write in connected mode.

Inherited from AbstractDatagramProtocol (via DatagramProtocol):

Method __getstate__ Undocumented
Method doStart Make sure startProtocol is called.
Method doStop Make sure stopProtocol is called.
Method makeConnection Make a connection to a transport and a server.
def __init__(self, controller): (source)
Undocumented
def pickID(self): (source)
Undocumented
def stopProtocol(self): (source)

Called when the transport is disconnected.

Will only be called once, after all ports are disconnected.
def startProtocol(self): (source)

Called when a transport is connected to this protocol.

Will only be called once, even if multiple ports are connected.
def writeMessage(self, message, address): (source)
Undocumented
def startListening(self): (source)
Undocumented
def datagramReceived(self, data, addr): (source)
Called when a datagram is received.
Parametersdatagramthe string received from the transport.
addrtuple of source of datagram.
def removeResend(self, id): (source)
Mark message ID as no longer having duplication suppression.
def query(self, address, queries, timeout=10, id=None): (source)
Send out a message with the given queries.
ParametersaddressThe address to which to send the query (type: tuple of str and int )
queriesThe queries to transmit (type: list of Query instances )
Returns(type: Deferred )
def _clearFailed(self, deferred, id): (source)
Undocumented
API Documentation for twisted, generated by pydoctor.