CFNetServiceMonitorInvalidate(_:)
Invalidates an instance of a Network Service monitor object.
Declaration
func CFNetServiceMonitorInvalidate(_ monitor: CFNetServiceMonitor)Parameters
- monitor:
CFNetServiceMonitor to invalidate; cannot be
NULL.
Discussion
This function invalidates the specified Network Service monitor so that it cannot be used again. Before you call this function, you should call CFNetServiceMonitorStop(_:_:). If the monitor has not already been stopped, this function stops the monitor for you.
Special Considerations
This function is thread safe.
See Also
Network Services
CFNetServiceCFNetServiceBrowserCFNetServiceBrowserFlagsCFNetServiceMonitorCFNetServiceMonitorTypeCFNetServiceClientContextCFNetServiceRegisterFlagsCFNetServicesErrorCFNetServiceBrowserInvalidate(_:)CFNetServiceBrowserScheduleWithRunLoop(_:_:_:)CFNetServiceBrowserCreate(_:_:_:)CFNetServiceBrowserGetTypeID()CFNetServiceBrowserSearchForDomains(_:_:_:)CFNetServiceBrowserSearchForServices(_:_:_:_:)CFNetServiceBrowserStopSearch(_:_:)