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

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

DNS protocol over UDP.

Split Table into Classes Show Methods in One Table

Line # Kind Name Docs
1641 Method stopProtocol Stop protocol: reset state variables.
1649 Method startProtocol Upon start, reset internal state.
1656 Method writeMessage Send a message holding DNS queries.
1664 Method startListening Undocumented
1668 Method datagramReceived Read a datagram, extract the message in it and trigger the associated
1701 Method removeResend Mark message ID as no longer having duplication suppression.
1710 Method query Send out a message with the given queries.

Inherited from DNSMixin:

Line # Kind Name Docs
1567 Method __init__ Undocumented
1572 Method pickID Return a unique ID for queries.
1582 Method callLater Wrapper around reactor.callLater, mainly for test purpose.
1589 Method _query Send out a message with the given queries.
1624 Method _clearFailed Clean the Deferred after a timeout.

Inherited from DatagramProtocol:

Line # Kind Name Docs
575 Method connectionRefused Called due to error from write in connected mode.

Inherited from AbstractDatagramProtocol (via DatagramProtocol):

Line # Kind Name Docs
506 Method __getstate__ Undocumented
511 Method doStart Make sure startProtocol is called.
522 Method doStop Make sure stopProtocol is called.
547 Method makeConnection Make a connection to a transport and a server.
Line # Kind Name Docs
506 Method __getstate__ Undocumented
1567 Method __init__ Undocumented
1582 Method callLater Wrapper around reactor.callLater, mainly for test purpose.
575 Method connectionRefused Called due to error from write in connected mode.
1668 Method datagramReceived Read a datagram, extract the message in it and trigger the associated
511 Method doStart Make sure startProtocol is called.
522 Method doStop Make sure stopProtocol is called.
547 Method makeConnection Make a connection to a transport and a server.
1572 Method pickID Return a unique ID for queries.
1710 Method query Send out a message with the given queries.
1701 Method removeResend Mark message ID as no longer having duplication suppression.
1664 Method startListening Undocumented
1649 Method startProtocol Upon start, reset internal state.
1641 Method stopProtocol Stop protocol: reset state variables.
1656 Method writeMessage Send a message holding DNS queries.
1624 Method _clearFailed Clean the Deferred after a timeout.
1589 Method _query Send out a message with the given queries.
def stopProtocol(self): (source)
Stop protocol: reset state variables.
def startProtocol(self): (source)
Upon start, reset internal state.
def writeMessage(self, message, address): (source)
Send a message holding DNS queries.
Parametersmessage (type: Message )
def startListening(self): (source)
Undocumented
def datagramReceived(self, data, addr): (source)
Read a datagram, extract the message in it and trigger the associated Deferred.
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 )
API Documentation for Twisted, generated by pydoctor at 2008-10-26 16:12:37.