CFNetServiceScheduleWithRunLoop(_:_:_:)
Schedules a CFNetService on a run loop.
Declaration
func CFNetServiceScheduleWithRunLoop(_ theService: CFNetService, _ runLoop: CFRunLoop, _ runLoopMode: CFString)Parameters
- theService:
The CFNetService that is to be scheduled on a run loop; cannot be
NULL. - runLoop:
The run loop on which the service is to be scheduled; cannot be
NULL. - runLoopMode:
The mode on which to schedule the service; cannot be
NULL.
Discussion
Schedules the specified service on a run loop, which places the service in asynchronous mode. The caller is responsible for ensuring that at least one of the run loops on which the service is scheduled is being run.
Special Considerations
This function is thread safe.
Before calling this function, call CFNetServiceSetClient(_:_:_:) to prepare a CFNetService for use in asynchronous mode.
See Also
Network Services
CFNetServiceCFNetServiceBrowserCFNetServiceBrowserFlagsCFNetServiceMonitorCFNetServiceMonitorTypeCFNetServiceClientContextCFNetServiceRegisterFlagsCFNetServicesErrorCFNetServiceBrowserInvalidate(_:)CFNetServiceBrowserScheduleWithRunLoop(_:_:_:)CFNetServiceBrowserCreate(_:_:_:)CFNetServiceBrowserGetTypeID()CFNetServiceBrowserSearchForDomains(_:_:_:)CFNetServiceBrowserSearchForServices(_:_:_:_:)CFNetServiceBrowserStopSearch(_:_:)