<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/nw_protocol_definition_t",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@T@nw_protocol_definition_t"
  },
  "title" : "nw_protocol_definition_t"
}
-->

# nw_protocol_definition_t

The abstract superclass for identifying a network protocol.

```
typealias nw_protocol_definition_t = any OS_nw_protocol_definition
```

## Topics

### Comparing Protocols

[`nw_protocol_definition_is_equal(_:_:)`](/documentation/Network/nw_protocol_definition_is_equal(_:_:))

Compares two protocol definitions, and returns true if they represent the same protocol implementation.



---

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)