---
title: "CFNetDiagnosticCopyNetworkStatusPassively(_:_:)"
framework: cfnetwork
role: symbol
role_heading: Function
path: "cfnetwork/cfnetdiagnosticcopynetworkstatuspassively(_:_:)"
---

# CFNetDiagnosticCopyNetworkStatusPassively(_:_:)

Gets a network status value.

## Declaration

```swift
func CFNetDiagnosticCopyNetworkStatusPassively(_ details: CFNetDiagnostic, _ description: UnsafeMutablePointer<Unmanaged<CFString>?>?) -> CFNetDiagnosticStatus
```

## Parameters

- `details`: CFNetDiagnosticRef, created by doc://com.apple.cfnetwork/documentation/CFNetwork/CFNetDiagnosticCreateWithStreams(_:_:_:) or doc://com.apple.cfnetwork/documentation/CFNetwork/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 https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-103029.

## Return Value

Return Value A network status value.

## Discussion

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.

## See Also

### Network Diagnostics

- [CFNetDiagnostic](cfnetwork/cfnetdiagnostic.md)
- [CFNetDiagnosticStatusValues](cfnetwork/cfnetdiagnosticstatusvalues.md)
- [CFNetDiagnosticCreateWithStreams(_:_:_:)](cfnetwork/cfnetdiagnosticcreatewithstreams(_:_:_:).md)
- [CFNetDiagnosticCreateWithURL(_:_:)](cfnetwork/cfnetdiagnosticcreatewithurl(_:_:).md)
- [CFNetDiagnosticDiagnoseProblemInteractively(_:)](cfnetwork/cfnetdiagnosticdiagnoseprobleminteractively(_:).md)
- [CFNetDiagnosticSetName(_:_:)](cfnetwork/cfnetdiagnosticsetname(_:_:).md)
