CFNetServiceUnscheduleFromRunLoop(_:_:_:)
Unschedules a CFNetService from a run loop.
Declaration
func CFNetServiceUnscheduleFromRunLoop(_ theService: CFNetService, _ runLoop: CFRunLoop, _ runLoopMode: CFString)Parameters
- theService:
The CFNetService that is to be unscheduled; cannot be
NULL. - runLoop:
The run loop; cannot be
NULL. - runLoopMode:
The mode from which the service is to be unscheduled; cannot be
NULL.
Discussion
Unschedules the specified service from the specified run loop and mode. Call this function to shut down a service that is running asynchronously. To complete the shutdown, call CFNetServiceSetClient(_:_:_:) and set clientCB to NULL. Then call CFNetServiceCancel(_:).
Special Considerations
This function is thread safe.
See Also
Network Services
CFNetServiceCFNetServiceBrowserCFNetServiceBrowserFlagsCFNetServiceMonitorCFNetServiceMonitorTypeCFNetServiceClientContextCFNetServiceRegisterFlagsCFNetServicesErrorCFNetServiceBrowserInvalidate(_:)CFNetServiceBrowserScheduleWithRunLoop(_:_:_:)CFNetServiceBrowserCreate(_:_:_:)CFNetServiceBrowserGetTypeID()CFNetServiceBrowserSearchForDomains(_:_:_:)CFNetServiceBrowserSearchForServices(_:_:_:_:)CFNetServiceBrowserStopSearch(_:_:)