Gets a network status value.
- iOS 2.0–11.0Deprecated
- macOS 10.4–10.13Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–11.0Deprecated
NULL, upon return contains a localized string containing a description of the current network status. Ownership follows the The Create Rule.
A network status value.
This function returns a status value that can be used to display basic information about the connection, and optionally gets a localized string containing a description of the current network status.
This function is guaranteed not to generate network activity.
This function is thread safe as long as another thread does not alter the same CFNetDiagnosticRef at the same time.