<!--
{
  "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/NWParameters/ProtocolStack",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network12NWParametersC13ProtocolStackC"
  },
  "title" : "NWParameters.ProtocolStack"
}
-->

# NWParameters.ProtocolStack

An ordered set of protocol options that define the protocols that connections and listeners use.

```
class ProtocolStack
```

## Topics

### Adding Application Protocols

[`var applicationProtocols: [NWProtocolOptions]`](/documentation/Network/NWParameters/ProtocolStack/applicationProtocols)

The array of application protocol options used by connections and listeners.

### Configuring Lower Protocols

[`var transportProtocol: NWProtocolOptions?`](/documentation/Network/NWParameters/ProtocolStack/transportProtocol)

The transport protocol options used by connections and listeners.

[`var internetProtocol: NWProtocolOptions?`](/documentation/Network/NWParameters/ProtocolStack/internetProtocol)

The Internet Protocol options used by connections and listeners.

## Relationships

### Conforms To

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

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

---

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)