t.n.s.DNSServerFactory(protocol.ServerFactory) : class documentation

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

Server factory and tracker for DNSProtocol connections. This class also provides records for responses to DNS queries.
Instance Variable connections A list of all the connected DNSProtocol instances using this object as their controller. (type: list of DNSProtocol)
Method __init__ Undocumented
Method buildProtocol Create an instance of a subclass of Protocol.
Method connectionMade Track a newly connected DNSProtocol.
Method connectionLost Stop tracking a no-longer connected DNSProtocol.
Method sendReply Undocumented
Method gotResolverResponse Undocumented
Method gotResolverError Undocumented
Method handleQuery Undocumented
Method handleInverseQuery Undocumented
Method handleStatus Undocumented
Method handleNotify Undocumented
Method handleOther Undocumented
Method messageReceived Undocumented
Method allowQuery Undocumented

Inherited from Factory (via ServerFactory):

Method logPrefix Describe this factory for log messages.
Method doStart Make sure startFactory is called.
Method doStop Make sure stopFactory is called.
Method startFactory This will be called before I begin listening on a Port or Connector.
Method stopFactory This will be called before I stop listening on all Ports/Connectors.
connections =
A list of all the connected DNSProtocol instances using this object as their controller. (type: list of DNSProtocol)
def __init__(self, authorities=None, caches=None, clients=None, verbose=0): (source)
Undocumented
def buildProtocol(self, addr): (source)
Create an instance of a subclass of Protocol.

The returned instance will handle input on an incoming server connection, and an attribute "factory" pointing to the creating factory.

Override this method to alter how Protocol instances get created.

Parametersaddran object implementing twisted.internet.interfaces.IAddress
def connectionMade(self, protocol): (source)
Track a newly connected DNSProtocol.
def connectionLost(self, protocol): (source)
Stop tracking a no-longer connected DNSProtocol.
def sendReply(self, protocol, message, address): (source)
Undocumented
def gotResolverResponse(self, (ans, auth, add), protocol, message, address): (source)
Undocumented
def gotResolverError(self, failure, protocol, message, address): (source)
Undocumented
def handleQuery(self, message, protocol, address): (source)
Undocumented
def handleInverseQuery(self, message, protocol, address): (source)
Undocumented
def handleStatus(self, message, protocol, address): (source)
Undocumented
def handleNotify(self, message, protocol, address): (source)
Undocumented
def handleOther(self, message, protocol, address): (source)
Undocumented
def messageReceived(self, message, proto, address=None): (source)
Undocumented
def allowQuery(self, message, protocol, address): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2012-06-04 17:20:01.