CFNetServiceBrowserInvalidate(_:)
Invalidates an instance of a Network Service browser object.
Declaration
func CFNetServiceBrowserInvalidate(_ browser: CFNetServiceBrowser)Parameters
- browser:
The CFNetServiceBrowser to invalidate, obtained by a previous call to Cfnetservicebrowsercreate(_:_:_:).
Discussion
This function invalidates the specified instance of a Network Service browser object. Any searches using the specified instance that are in progress when this function is called are stopped. An invalidated browser cannot be scheduled on a run loop and its callback function is never called.
Special Considerations
This function is thread safe as long as another thread does not alter the same CFNetServiceBrowserRef at the same time.
See Also
Network Services
CFNetServiceCFNetServiceBrowserCFNetServiceBrowserFlagsCFNetServiceMonitorCFNetServiceMonitorTypeCFNetServiceClientContextCFNetServiceRegisterFlagsCFNetServicesErrorCFNetServiceBrowserScheduleWithRunLoop(_:_:_:)CFNetServiceBrowserCreate(_:_:_:)CFNetServiceBrowserGetTypeID()CFNetServiceBrowserSearchForDomains(_:_:_:)CFNetServiceBrowserSearchForServices(_:_:_:_:)CFNetServiceBrowserStopSearch(_:_:)CFNetServiceBrowserUnscheduleFromRunLoop(_:_:_:)