<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/DatagramProtocol",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network16DatagramProtocolP"
  },
  "title" : "DatagramProtocol"
}
-->

# DatagramProtocol

Types that conform to DatagramProtocol send and receive messages
with minimal or no metadata, usually constrained to a fixed maximum size.

```
protocol DatagramProtocol : MessageProtocol
```

## Relationships

### Inherits From

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

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

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

### Conforming Types

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

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

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

---

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)