mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-08 21:46:54 +08:00
23122b327c
It would be probably good idea to also remove tools/docgen.py and asciidoc.mk, but asciidoc.mk is still mentioned under `cloud/doc`, which may contain some useful info which we'll need at least to review before removing. PUBLISHED_FROM=faf454d4c52a2f07ea8ac084cf0bd11a0c9c9b3b
22 lines
634 B
Markdown
22 lines
634 B
Markdown
---
|
|
title: "mg_dns_uncompress_name()"
|
|
decl_name: "mg_dns_uncompress_name"
|
|
symbol_kind: "func"
|
|
signature: |
|
|
size_t mg_dns_uncompress_name(struct mg_dns_message *msg, struct mg_str *name,
|
|
char *dst, int dst_len);
|
|
---
|
|
|
|
Uncompress a DNS compressed name.
|
|
|
|
The containing dns message is required because the compressed encoding
|
|
and reference suffixes present elsewhere in the packet.
|
|
|
|
If name is less than `dst_len` characters long, the remainder
|
|
of `dst` is terminated with `\0' characters. Otherwise, `dst` is not
|
|
*terminated.
|
|
|
|
If `dst_len` is 0 `dst` can be NULL.
|
|
Return the uncompressed name length.
|
|
|