ot::Dns::Client::ServiceResponse::GetServiceName() const method
Gets the service instance name associated with a DNS service instance resolution response. MUST only be used from `ServiceCallback`.
Arguments
aLabelBuffer
A buffer to char array to output the service instance label (MUST NOT be NULL).
aLabelBufferSize
The size of @p aLabelBuffer.
aNameBuffer
A buffer to char array to output the rest of service name (can be NULL if user is not interested in getting the name).
aNameBufferSize
The size of @p aNameBuffer.
Return value
kErrorNone The service instance name was read successfully. kErrorNoBufs Either the label or name does not fit in the given buffers.