Structure

NWConnection.DataTransferReport

A report that provides metrics about data being sent and received on a connection.

Declaration

struct NWConnection.DataTransferReport

Topics

Examining Data Transfer

let aggregatePathReport: NWConnection.DataTransferReport.PathReport

A report that sums counts across all network paths.

let pathReports: [NWConnection.DataTransferReport.PathReport]

An array of reports for each network path the connection used.

struct NWConnection.DataTransferReport.PathReport

A report that contains details about data transfer over a single network path.

Summarizing Reports

let duration: TimeInterval

The duration of the data transfer report, from when it was started to when it was collected.

var debugDescription: String

The description of the report.

Relationships

See Also

Collecting Connection Metrics

Collecting Network Connection Metrics

Use reports to understand how DNS and protocol handshakes impact connection establishment.

func requestEstablishmentReport(queue: DispatchQueue, completion: (NWConnection.EstablishmentReport?) -> Void)

Requests a copy of the connection's establishment report once the connection is in the ready state.

Beta
struct NWConnection.EstablishmentReport

A report that provides metrics about how a connection was established.

Beta
func startDataTransferReport() -> NWConnection.PendingDataTransferReport

Begins a new data transfer report, which can later be collected.

Beta
class NWConnection.PendingDataTransferReport

An outstanding data transfer report that has yet to be collected.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software