Class t.n.s.DNSServerFactory(protocol.ServerFactory):

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 VariablesconnectionsA list of all the connected DNSProtocol instances using this object as their controller. (type: list of DNSProtocol )

Split Table into Classes Show Methods in One Table

Line # Kind Name Docs
40 Method __init__ Undocumented
57 Method buildProtocol Create an instance of a subclass of Protocol.
63 Method connectionMade Track a newly connected DNSProtocol.
70 Method connectionLost Stop tracking a no-longer connected DNSProtocol.
77 Method sendReply Undocumented
98 Method gotResolverResponse Undocumented
119 Method gotResolverError Undocumented
131 Method handleQuery Undocumented
143 Method handleInverseQuery Undocumented
150 Method handleStatus Undocumented
157 Method handleNotify Undocumented
164 Method handleOther Undocumented
171 Method messageReceived Undocumented
203 Method allowQuery Undocumented

Inherited from Factory (via ServerFactory):

Line # Kind Name Docs
39 Method doStart Make sure startFactory is called.
50 Method doStop Make sure stopFactory is called.
65 Method startFactory This will be called before I begin listening on a Port or Connector.
76 Method stopFactory This will be called before I stop listening on all Ports/Connectors.
Line # Kind Name Docs
40 Method __init__ Undocumented
203 Method allowQuery Undocumented
57 Method buildProtocol Create an instance of a subclass of Protocol.
70 Method connectionLost Stop tracking a no-longer connected DNSProtocol.
63 Method connectionMade Track a newly connected DNSProtocol.
39 Method doStart Make sure startFactory is called.
50 Method doStop Make sure stopFactory is called.
119 Method gotResolverError Undocumented
98 Method gotResolverResponse Undocumented
143 Method handleInverseQuery Undocumented
157 Method handleNotify Undocumented
164 Method handleOther Undocumented
131 Method handleQuery Undocumented
150 Method handleStatus Undocumented
171 Method messageReceived Undocumented
77 Method sendReply Undocumented
65 Method startFactory This will be called before I begin listening on a Port or Connector.
76 Method stopFactory This will be called before I stop listening on all Ports/Connectors.
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 2008-10-26 16:12:37.