---
title: DatagramProtocol
framework: network
role: symbol
role_heading: Protocol
path: network/datagramprotocol
---

# DatagramProtocol

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

## Declaration

```swift
protocol DatagramProtocol : MessageProtocol
```

## Relationships

### Inherits From

- [MessageProtocol](network/messageprotocol.md)
- [NetworkProtocolOptions](network/networkprotocoloptions.md)
- [OneToOneProtocol](network/onetooneprotocol.md)

### Conforming Types

- [QUICDatagram](network/quicdatagram.md)
- [UDP](network/udp.md)
