<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 12.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/NWProtocolMetadata",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network18NWProtocolMetadataC"
  },
  "title" : "NWProtocolMetadata"
}
-->

# NWProtocolMetadata

The abstract superclass for specifying metadata about a network protocol.

```
class NWProtocolMetadata
```

## Overview

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

## Relationships

### Inherited By

[`Metadata`](/documentation/Network/NWProtocolWebSocket/Metadata)

[`Metadata`](/documentation/Network/NWProtocolUDP/Metadata)

[`Metadata`](/documentation/Network/NWProtocolIP/Metadata)

[`Metadata`](/documentation/Network/NWProtocolTLS/Metadata)

[`Metadata`](/documentation/Network/NWProtocolQUIC/Metadata)

[`Message`](/documentation/Network/NWProtocolFramer/Message)

[`Metadata`](/documentation/Network/NWProtocolTCP/Metadata)

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)