ot::NetworkData::Service::Manager::FindPreferredDnsSrpAnycastInfo() const method
Finds the preferred DNS/SRP info among all the Thread Network Data "DNS/SRP Service Anycast Address" entries. The preferred entry is determined based on the sequence number value where a larger value (in the sense specified by Serial Number Arithmetic logic in RFC-1982) is considered more recent and therefore preferred.
Arguments
aInfo
A reference to `DnsSrpAnycastInfo` to return the info.
Return value
kErrorNone Successfully found the preferred info. @p aInfo is updated. kErrorNotFound No "DNS/SRP Service Anycast" entry in Network Data.
ot::NetworkData::Service::Manager::FindPreferredDnsSrpAnycastInfo() const calls 3 functions:
![]()
ot::NetworkData::Service::Manager::FindPreferredDnsSrpAnycastInfo() const
ot::NetworkData::Service::Manager::FindPreferredDnsSrpAnycastInfo() const reads 3 variables:
![]()
ot::NetworkData::Service::Manager::FindPreferredDnsSrpAnycastInfo() const