mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-15 19:13:18 +00:00
Update mg_dns_uncompress_name.md
This commit is contained in:
1 parent
8b975533e5
commit
f72a06e25a
1 file changed
+5
-5
@@ -7,15 +7,15 @@ signature: |
|
|||||||
char *dst, int dst_len);
|
char *dst, int dst_len);
|
||||||
---
|
---
|
||||||
|
|
||||||
Uncompress a DNS compressed name.
|
Uncompresses a DNS compressed name.
|
||||||
|
|
||||||
The containing dns message is required because the compressed encoding
|
The containing DNS message is required because of the compressed encoding
|
||||||
and reference suffixes present elsewhere in the packet.
|
and reference suffixes present elsewhere in the packet.
|
||||||
|
|
||||||
If name is less than `dst_len` characters long, the remainder
|
If the name is less than `dst_len` characters long, the remainder
|
||||||
of `dst` is terminated with `\0' characters. Otherwise, `dst` is not
|
of `dst` is terminated with `\0` characters. Otherwise, `dst` is not
|
||||||
*terminated.
|
*terminated.
|
||||||
|
|
||||||
If `dst_len` is 0 `dst` can be NULL.
|
If `dst_len` is 0 `dst` can be NULL.
|
||||||
Return the uncompressed name length.
|
Returns the uncompressed name length.
|
||||||
|
|
||||||
Reference in new issue
Block a user