---
title: "SCNetworkConnectionCopyStatistics(_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scnetworkconnectioncopystatistics(_:)"
---

# SCNetworkConnectionCopyStatistics(_:)

Returns the statistics of the specified connection.

## Declaration

```swift
func SCNetworkConnectionCopyStatistics(_ connection: SCNetworkConnection) -> CFDictionary?
```

## Parameters

- `connection`: The network connection.

## Return Value

Return Value The statistics dictionary, or NULL if an error occurred (use the SCError() function to retrieve the specific error).

## Discussion

Discussion A statistics dictionary contains specific dictionaries with statistics for each subcomponent of the service. For example, a statistics dictionary for PPP contains the following sub-dictionaries, keys, and values:  |  |   |  |   |  |   |  |   |  |   |  |   |  |  See Statistics Dictionary Keys for the keys to use in the statistics dictionary.

## See Also

### Getting Connection-Status Information

- [SCNetworkConnectionGetTypeID()](systemconfiguration/scnetworkconnectiongettypeid().md)
- [SCNetworkConnectionCopyUserPreferences(_:_:_:)](systemconfiguration/scnetworkconnectioncopyuserpreferences(_:_:_:).md)
- [SCNetworkConnectionCopyServiceID(_:)](systemconfiguration/scnetworkconnectioncopyserviceid(_:).md)
- [SCNetworkConnectionGetStatus(_:)](systemconfiguration/scnetworkconnectiongetstatus(_:).md)
- [SCNetworkConnectionCopyExtendedStatus(_:)](systemconfiguration/scnetworkconnectioncopyextendedstatus(_:).md)
- [SCNetworkConnectionCopyUserOptions(_:)](systemconfiguration/scnetworkconnectioncopyuseroptions(_:).md)
