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
8b975533
Commit
8b975533
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_encode_record.md
parent
b32f7a9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mg_dns_encode_record.md
docs/c-api/dns.h/mg_dns_encode_record.md
+3
-3
No files found.
docs/c-api/dns.h/mg_dns_encode_record.md
View file @
8b975533
...
...
@@ -8,11 +8,11 @@ signature: |
size_t rlen);
---
Encode
and append
a DNS resource record to an IO buffer.
Encode
s and appends
a DNS resource record to an IO buffer.
The record metadata is taken from the
`rr`
parameter, while the name and data
are taken from the parameters, encoded in the appropriate format depending on
record type
,
and stored in the IO buffer. The encoded values might contain
record type and stored in the IO buffer. The encoded values might contain
offsets within the IO buffer. It's thus important that the IO buffer doesn't
get trimmed while a sequence of records are encoded while preparing a DNS
*
reply.
...
...
@@ -21,5 +21,5 @@ This function doesn't update the `name` and `rdata` pointers in the `rr`
*
struct
because they might be invalidated as soon as the IO buffer grows again.
Return the number of bytes appened or -1 in case of error.
Return
s
the number of bytes appened or -1 in case of error.
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