mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-11 23:19:00 +08:00
3eb4eb8074
PUBLISHED_FROM=331821dcd1f7dc8a94581cd8a9b51aa00a89fddc
643 B
643 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); |
Uncompresses a DNS compressed name.
The containing DNS message is required because of the compressed encoding and reference suffixes present elsewhere in the packet.
If the 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.
Returns the uncompressed name length.