The abstract superclass for specifying metadata about a network protocol.


class NWProtocolMetadata


You can use metadata when sending and receiving messages, as well as when inspecting connection properties.

See Also

Inspecting Connections

func metadata(definition: NWProtocolDefinition) -> NWProtocolMetadata?

Retrieves the connection-wide metadata for a specific protocol.

let endpoint: NWEndpoint

The remote endpoint with which the connection was initialized.

let parameters: NWParameters

The parameters with which the connection was initialized.

var queue: DispatchQueue?

The queue on which connection events are delivered.

var debugDescription: String

The description of the connection.