- pIDNS:The IDNS interface pointer.
- pbyDomain: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.
- pcb: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.
char *IDNS_ParseDomain(IDNS *pIDNS, const byte *pbyDomain, int *pcb);
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.