Invalidates an instance of a Network Service monitor object.
SDKs
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- CFNetwork
Declaration
void CFNetServiceMonitorInvalidate(CFNet Service Monitor Ref monitor);
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 CFNet
. If the monitor has not already been stopped, this function stops the monitor for you.
Special Considerations
This function is thread safe.