Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
97903664
Commit
97903664
authored
Jul 25, 2016
by
Evelyn
Committed by
GitHub
Jul 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update mg_dns_create_reply.md
parent
89f0a8c5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mg_dns_create_reply.md
docs/c-api/dns-server.h/mg_dns_create_reply.md
+4
-4
No files found.
docs/c-api/dns-server.h/mg_dns_create_reply.md
View file @
97903664
...
@@ -7,18 +7,18 @@ signature: |
...
@@ -7,18 +7,18 @@ signature: |
struct mg_dns_message *msg);
struct mg_dns_message *msg);
---
---
Create a DNS reply.
Create
s
a DNS reply.
The reply will be based on an existing query message
`msg`
.
The reply will be based on an existing query message
`msg`
.
The query body will be appended to the output buffer.
The query body will be appended to the output buffer.
"reply + recursion allowed" will be added to the message flags and
"reply + recursion allowed" will be added to the message flags and
the
message's num_answers will be set to 0.
message's num_answers will be set to 0.
Answer records can be appended with
`mg_dns_send_reply`
or by lower
Answer records can be appended with
`mg_dns_send_reply`
or by lower
level function defined in the DNS API.
level function defined in the DNS API.
In order to send
the
reply use
`mg_dns_send_reply`
.
In order to send
a
reply use
`mg_dns_send_reply`
.
It's possible to use a connection's send buffer as reply buffer
s
,
It's possible to use a connection's send buffer as reply buffer,
and it will work for both UDP and TCP connections.
and it will work for both UDP and TCP connections.
Example:
Example:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment