---
title: NWProtocolUDP
framework: network
role: symbol
role_heading: Class
path: network/nwprotocoludp
---

# NWProtocolUDP

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

## Declaration

```swift
class NWProtocolUDP
```

## Topics

### Creating UDP Connections

- [NWProtocolUDP.Options](network/nwprotocoludp/options.md)
- [definition](network/nwprotocoludp/definition.md)

### Sending UDP Messages

- [NWProtocolUDP.Metadata](network/nwprotocoludp/metadata.md)

## Relationships

### Inherits From

- [NWProtocol](network/nwprotocol.md)

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Network Protocols

- [Building a custom peer-to-peer protocol](network/building-a-custom-peer-to-peer-protocol.md)
- [Connecting iPadOS and visionOS apps over the local network](visionos/connecting-ipados-and-visionos-apps-over-the-local-network.md)
- [NWProtocolTCP](network/nwprotocoltcp.md)
- [NWProtocolTLS](network/nwprotocoltls.md)
- [NWProtocolQUIC](network/nwprotocolquic.md)
- [NWProtocolIP](network/nwprotocolip.md)
- [NWProtocolWebSocket](network/nwprotocolwebsocket.md)
- [NWProtocolFramer](network/nwprotocolframer.md)
