ot::Dns::Client::AddressResponse::GetAddress() const method
Gets the IPv6 address associated with an address resolution DNS response. MUST only be used from `AddressCallback`. The response may include multiple IPv6 address records. @p aIndex can be used to iterate through the list of addresses. Index zero gets the the first address and so on. When we reach end of the list, this method returns `kErrorNotFound`.
Arguments
aIndex
The address record index to retrieve.
aAddress
A reference to an IPv6 address to output the address.
aTtl
A reference to a `uint32_t` to output TTL for the address.
Return value
kErrorNone The address was read successfully. kErrorNotFound No address record at @p aIndex. kErrorParse Could not parse the records. kErrorInvalidState No NAT64 prefix (applicable only when NAT64 is allowed).
ot::Dns::Client::AddressResponse::GetAddress() const calls 5 functions:
![]()
ot::Dns::Client::AddressResponse::GetAddress() const
ot::Dns::Client::AddressResponse::GetAddress() const reads 12 variables:
![]()
ot::Dns::Client::AddressResponse::GetAddress() const