mongoose/docs/c-api/dns.h/mg_dns_uncompress_name.md
Alexander Alashkin e406de7e00 Remove extra error message
PUBLISHED_FROM=8b7fcfc1bc32ff9ff38e2904ddb730c83bf9fae4
2016-07-25 16:36:18 +00:00

634 B

title decl_name symbol_kind signature
mg_dns_uncompress_name() mg_dns_uncompress_name func 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.