This module includes functions that control DNS communication.
More...
This module includes functions that control DNS communication.
This structure implements DNS Query parameters.
typedef void(* otDnsResponseHandler)(void *aContext, const char *aHostname, otIp6Address *aAddress, uint32_t aTtl, ThreadError aResult) |
This function pointer is called when a DNS response is received.
- Parameters
-
[in] | aContext | A pointer to application-specific context. |
[in] | aHostname | Identifies hostname related with DNS response. |
[in] | aAddress | A pointer to the IPv6 address received in DNS response. May be null. |
[in] | aTtl | Specifies the maximum time in seconds that the resource record may be cached. |
[in] | aResult | A result of the DNS transaction. |
- Return values
-
kThreadError_None | A response was received successfully and IPv6 address is provided in aAddress . |
kThreadError_Abort | A DNS transaction was aborted by stack. |
kThreadError_ResponseTimeout | No DNS response has been received within timeout. |
kThreadError_NotFound | A response was received but no IPv6 address has been found. |
kThreadError_Failed | A response was received but status code is different than success. |