- iOS 9.3+
- macOS 10.11.4+
- Mac Catalyst 13.0+
- tvOS 9.2+
- watchOS 2.2+
Specifying kDNSServiceFlagsForceMulticast will cause query to be performed with a link-local mDNS query, even if the name is an apparently non-local name (i.e. a name not ending in ".local.")
The interface on which to resolve the service. If this resolve call is as a result of a currently active
DNSServiceoperation, then the interfaceIndex should be the index reported in the DNSServiceBrowseReply callback. If this resolve call is using information previously saved (e.g. in a preference file) for later use, then use interfaceIndex 0, because the desired service may now be reachable via a different physical interface. See "Constants for specifying an interface index" for more details.
Browse(_: _: _: _: _: _: _:)
The name of the service instance to be resolved, as reported to the
The type of the service instance to be resolved, as reported to the
The domain of the service instance to be resolved, as reported to the
The function to be called when a result is found, or if the call asynchronously fails.
An application context pointer which is passed to the callback function (may be NULL).
k on success (any subsequent, asynchronous errors are delivered to the callback), otherwise returns an error code indicating the error that occurred (the callback is never invoked and the DNSServiceRef is not initialized).