<!--
{
  "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_service_class_t",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@EA@nw_service_class_t"
  },
  "title" : "nw_service_class_t"
}
-->

# nw_service_class_t

Levels of service quality that can be used with a connection.

```
struct nw_service_class_t
```

## Topics

### Creating a service class instance

[`init(_:)`](/documentation/Network/nw_service_class_t/init(_:))

Creates an instance of the service class structure.

[`init(rawValue:)`](/documentation/Network/nw_service_class_t/init(rawValue:))

Creates an instance of the service class structure.

### Service classes

[`nw_service_class_best_effort`](/documentation/Network/nw_service_class_best_effort)

Default priority traffic.

[`nw_service_class_background`](/documentation/Network/nw_service_class_background)

Bulk traffic, or traffic that can be deprioritized behind foreground traffic.

[`nw_service_class_interactive_video`](/documentation/Network/nw_service_class_interactive_video)

Interactive video traffic.

[`nw_service_class_interactive_voice`](/documentation/Network/nw_service_class_interactive_voice)

Interactive voice traffic.

[`nw_service_class_responsive_data`](/documentation/Network/nw_service_class_responsive_data)

Responsive user-data traffic.

[`nw_service_class_signaling`](/documentation/Network/nw_service_class_signaling)

Signaling control traffic.

### Accessing the raw value

[`rawValue`](/documentation/Network/nw_service_class_t/rawValue)

The raw value of this instance.

## Relationships

### Conforms To

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

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

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

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

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

---

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)