mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-16 18:39:18 +08:00
e406de7e00
PUBLISHED_FROM=8b7fcfc1bc32ff9ff38e2904ddb730c83bf9fae4
667 B
667 B
title | decl_name | symbol_kind | signature |
---|---|---|---|
mg_dns_send_reply() | mg_dns_send_reply | func | 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.