Instance Method

startDataTransferReport()

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

Declaration

final func startDataTransferReport() -> NWConnection.PendingDataTransferReport

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.

struct NWConnection.EstablishmentReport

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

class NWConnection.PendingDataTransferReport

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

struct NWConnection.DataTransferReport

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