ot::Dns::Client::BrowseResponse::GetServiceInstance() const method
Gets a service instance associated with a DNS browse (service instance enumeration) response. MUST only be used from `BrowseCallback`. A response may include multiple service instance records. @p aIndex can be used to iterate through the list. Index zero gives the the first record. When we reach end of the list, `kErrorNotFound` is returned. Note that this method gets the service instance label and not the full service instance name which is of the form `..`.
Arguments
aIndex
The service instance record index to retrieve.
aLabelBuffer
A char array to output the service instance label (MUST NOT be NULL).
aLabelBufferSize
The size of @p aLabelBuffer.
Return value
kErrorNone The service instance was read successfully. kErrorNoBufs The name does not fit in @p aNameBuffer. kErrorNotFound No service instance record at @p aIndex. kErrorParse Could not parse the records.
ot::Dns::Client::BrowseResponse::GetServiceInstance() const calls 2 functions:
![]()
ot::Dns::Client::BrowseResponse::GetServiceInstance() const
ot::Dns::Client::BrowseResponse::GetServiceInstance() const reads 5 variables:
![]()
ot::Dns::Client::BrowseResponse::GetServiceInstance() const