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

# NWProtocolUDP

A network protocol for connections that use the User Datagram Protocol.

```
class NWProtocolUDP
```

## Topics

### Creating UDP Connections

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

A container of options for configuring how UDP is used on a connection.

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

The system definition of the User Datagram Protocol.

### Sending UDP Messages

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

A container representing UDP when sending and receiving packets.

## Relationships

### Inherits From

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

### 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)