DNSServiceResolve
DNSServiceResolve is a function in the DNS-SD (Bonjour) API that resolves a discovered service instance to its connection parameters. After a DNSServiceBrowse call finds a service, DNSServiceResolve is used to obtain the host name and port where the service is available, along with the TXT record that carries metadata about the service.
Usage typically follows a browse operation. You initiate DNSServiceBrowse to list services of a given type,
In the DNSServiceResolveReply callback, you receive the interfaceIndex, an errorCode, the full service name (fullname), the
After obtaining hosttarget, you typically perform a separate address lookup (for example using DNSServiceGetAddrInfo) to resolve
DNSServiceResolve requires maintaining the DNSServiceRef for ongoing asynchronous operations and releasing it when finished. It is