MCPcopy Index your code
hub / github.com/ddserver/ddserver / send

Function send

ddserver/recursor/__main__.py:104–120  ·  view source on GitHub ↗

Send responses to PowerDNS

(cls,
         logger,
         **kwargs)

Source from the content-addressed store, hash-verified

102
103@require(logger='ddserver.utils.logger:Logger')
104def send(cls,
105 logger,
106 **kwargs):
107 """ Send responses to PowerDNS
108 """
109
110 # Create message
111 message = cls(**kwargs)
112
113 logger.debug('recursor: Responding message: %s', message)
114
115 # Format the response
116 line = formatter(message)
117
118 # Send line to standard output
119 sys.stdout.write(line + '\n')
120 sys.stdout.flush()
121
122
123@require(db='ddserver.db:Database')

Callers 3

answer_soaFunction · 0.85
answer_aFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected