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.

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