CFNetDiagnosticCopyNetworkStatusPassively(_:_:)
Gets a network status value.
Declaration
func CFNetDiagnosticCopyNetworkStatusPassively(_ details: CFNetDiagnostic, _ description: UnsafeMutablePointer<Unmanaged<CFString>?>?) -> CFNetDiagnosticStatusParameters
- details:
CFNetDiagnosticRef, created by Cfnetdiagnosticcreatewithstreams(_:_:_:) or Cfnetdiagnosticcreatewithurl(_:_:), for which the Network Diagnostics status is to be obtained.
- description:
If not
NULL, upon return contains a localized string containing a description of the current network status. Ownership follows the 20001148 103029.
Return Value
A network status value.
Discussion
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.
Special Considerations
This function is thread safe as long as another thread does not alter the same CFNetDiagnosticRef at the same time.