mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-08 21:46:54 +08:00
7bed7ff482
Comments in headers are changed a bit: removed adoc-specific stuff, markdown is used instead PUBLISHED_FROM=9242cce85cc52a47a197d377e7e23804721a6bb5
20 lines
667 B
Markdown
20 lines
667 B
Markdown
---
|
|
title: "mg_dns_send_reply()"
|
|
decl_name: "mg_dns_send_reply"
|
|
symbol_kind: "func"
|
|
signature: |
|
|
void mg_dns_send_reply(struct mg_connection *nc, struct mg_dns_reply *r);
|
|
---
|
|
|
|
Send a DNS reply through a connection.
|
|
|
|
The DNS data is stored in an IO buffer pointed by reply structure in `r`.
|
|
This function mutates the content of that buffer in order to ensure that
|
|
the DNS header reflects size and flags of the mssage, that might have been
|
|
updated either with `mg_dns_reply_record` or by direct manipulation of
|
|
`r->message`.
|
|
|
|
Once sent, the IO buffer will be trimmed unless the reply IO buffer
|
|
is the connection's send buffer and the connection is not in UDP mode.
|
|
|