DNSServiceBrowseReply
Callback for handling the results of previous calls to DNSServiceBrowse.
Declaration
typealias DNSServiceBrowseReply = (DNSServiceRef?, DNSServiceFlags, UInt32, DNSServiceErrorType, UnsafePointer<CChar>?, UnsafePointer<CChar>?, UnsafePointer<CChar>?, UnsafeMutableRawPointer?) -> VoidParameters
- sdRef:
The DNSServiceRef initialized by Dnsservicebrowse(_:_:_:_:_:_:_:).
- flags:
Possible values are Kdnsserviceflagsmorecoming and kDNSServiceFlagsAdd. See flag definitions for details.
- interfaceIndex:
The interface on which the service is advertised. This index should be passed to Dnsserviceresolve(_:_:_:_:_:_:_:_:) when resolving the service.
- errorCode:
Will be Kdnsserviceerr_noerror (0) on success, otherwise will indicate the failure that occurred. Other parameters are undefined if the errorCode is nonzero.
- serviceName:
The discovered service name. This name should be displayed to the user, and stored for subsequent use in the Dnsserviceresolve(_:_:_:_:_:_:_:_:) call.
- regtype:
The service type, which is usually (but not always) the same as was passed to Dnsservicebrowse(_:_:_:_:_:_:_:). One case where the discovered service type may not be the same as the requested service type is when using subtypes: The client may want to browse for only those ftp servers that allow anonymous connections. The client will pass the string “_ftp._tcp,_anon” to Dnsservicebrowse(_:_:_:_:_:_:_:), but the type of the service that’s discovered is simply “_ftp._tcp”. The regtype for each discovered service instance should be stored along with the name, so that it can be passed to Dnsserviceresolve(_:_:_:_:_:_:_:_:) when the service is later resolved.
- replyDomain:
The domain of the discovered service instance. This may or may not be the same as the domain that was passed to Dnsservicebrowse(_:_:_:_:_:_:_:). The domain for each discovered service instance should be stored along with the name, so that it can be passed to Dnsserviceresolve(_:_:_:_:_:_:_:_:) when the service is later resolved.
- context:
The context pointer that was passed to the callout.