CFNetServiceBrowserScheduleWithRunLoop(_:_:_:)
Schedules a CFNetServiceBrowser on a run loop.
Declaration
func CFNetServiceBrowserScheduleWithRunLoop(_ browser: CFNetServiceBrowser, _ runLoop: CFRunLoop, _ runLoopMode: CFString)Parameters
- browser:
The CFNetServiceBrowser that is to be scheduled on a run loop; cannot be
NULL. - runLoop:
The run loop on which the browser is to be scheduled; cannot be
NULL. - runLoopMode:
The mode on which to schedule the browser; cannot be
NULL.
Discussion
This function schedules the specified CFNetServiceBrowser on the run loop, thereby placing the browser in asynchronous mode. The run loop will call the browser’s callback function to deliver the results of domain and service searches. The caller is responsible for ensuring that at least one of the run loops on which the browser is scheduled is being run.
Special Considerations
This function is thread safe.
See Also
Network Services
CFNetServiceCFNetServiceBrowserCFNetServiceBrowserFlagsCFNetServiceMonitorCFNetServiceMonitorTypeCFNetServiceClientContextCFNetServiceRegisterFlagsCFNetServicesErrorCFNetServiceBrowserInvalidate(_:)CFNetServiceBrowserCreate(_:_:_:)CFNetServiceBrowserGetTypeID()CFNetServiceBrowserSearchForDomains(_:_:_:)CFNetServiceBrowserSearchForServices(_:_:_:_:)CFNetServiceBrowserStopSearch(_:_:)CFNetServiceBrowserUnscheduleFromRunLoop(_:_:_:)