An EstablishmentReport contains information about how an NWConnection
became established. This is intended to be used for analysis of performance
after connection establishment. The report cannot be gathered until a
connection is in the .ready state.
Members (9)
get · iOS 13.0+
handshakes
TypeScript
get handshakes(): Array<NWConnection_EstablishmentReport_Handshake>
Swift declaration
let handshakes: [NWConnection.EstablishmentReport.Handshake]
An array of zero or more Handshake reports, in order from first completed
(thus, lowest level in the stack) to last completed.
get · iOS 13.0+
resolutions
TypeScript
get resolutions(): Array<NWConnection_EstablishmentReport_Resolution>
Swift declaration
let resolutions: [NWConnection.EstablishmentReport.Resolution]
An array of zero or more Resolution reports, in order from first resolved
to last resolved.
get · iOS 13.0+
proxyEndpoint
TypeScript
get proxyEndpoint(): (NWEndpoint) | null
Swift declaration
let proxyEndpoint: NWEndpoint?
The endpoint of the proxy used by a connection, if applicable.
get · iOS 13.0+
proxyConfigured
TypeScript
get proxyConfigured(): boolean
Swift declaration
let proxyConfigured: Bool
A boolean indicating if a proxy configuration applied to the connection,
even if the connection did not ultimately use a proxy.
get · iOS 13.0+
debugDescription
TypeScript
get debugDescription(): string
Swift declaration
var debugDescription: String { get }
A textual representation of this instance, suitable for debugging.
Calling this property directly is discouraged. Instead, convert an
instance of any type to a string by using the `String(reflecting:)`
initializer. This initializer works with any type, and uses the custom
`debugDescription` property for types that conform to
`CustomDebugStringConvertible`:
struct Point: CustomDebugStringConvertible {
let x: Int, y: Int
var debugDescription: String {
return "(\(x), \(y))"
}
}
let p = Point(x: 21, y: 30)
let s = String(reflecting: p)
print(s)
// Prints "(21, 30)"
The conversion of `p` to a string in the assignment to `s` uses the
`Point` type's `debugDescription` property.
get · iOS 13.0+
previousAttemptCount
TypeScript
get previousAttemptCount(): number
Swift declaration
let previousAttemptCount: Int
The number of connection attempts made before the successful attempt.
get · iOS 13.0+
attemptStartedAfterInterval
TypeScript
get attemptStartedAfterInterval(): number
Swift declaration
let attemptStartedAfterInterval: TimeInterval
The delay after calling start() before the successful connection
attempt began. For connections that succeed on the first attempt,
this value will be 0. For connections that move into the .waiting
state, this value will be greater than 0.
get · iOS 13.0+
duration
TypeScript
get duration(): number
Swift declaration
let duration: TimeInterval
The duration of the connection's establishment in seconds.
This is the total time from when the successful connection
attempt began until the connection becomes ready, including
resolution, proxy evaluation, and protocol handshakes.
get · iOS 13.0+
usedProxy
TypeScript
get usedProxy(): boolean
Swift declaration
let usedProxy: Bool
A boolean indicating if the connection was established through a proxy.