On success, it returns a pointer to a structure with the description of the DNS response. Response data includes pointers to structures; the referenced memory will be valid only for the lifetime of the IDNS object. None of those pointers should be retained or used after the IDNS interface has been released.
- pIDNS:The IDNS interface pointer.
- pResp:[out] A pointer to a structure describing the response.
int IDNS_GetResponse(IDNS *pIDNS, const AEEDNSResponse **pResp);
In all error cases, *pResp will point to an empty AEEDNSResponse structure. No assumptions should be made about the contents. Some possible error codes include:
- ENOMEMORY: A memory allocation failure prevented the request or a response.
- AEE_NET_ETIMEDOUT: A retransmission timeout (no servers responded).