Brew MP 1.0.2
This function converts a DNS representation of a domain name into a
zero-terminated string with dot (that is, period, or ".") delimiters.
The IDNS interface pointer.
A pointer to the start of the domain name. This pointer
must point into the DNS response data as described by an
AEEDNSItem record. This can be used to decode pbyDomain
values, or to decode values within the pbyData array.
A pointer to value to hold the number of bytes occupied by the
domain name (in the source byte array, not in the resulting
string). In the case of a mal-formed domain name, *pcb will
be set to zero. If pcb==NULL, it will be ignored.
- This function returns a zero-terminated string giving the host name, or
NULL on failure.
Domain names are returned in dotted notation, with no terminating dot
character at the end.
Failure could be due to an allocation failure or a mal-formed domain name;
*pcb can be used to distinguish between the two.