<!--
{
  "documentType" : "article",
  "framework" : "Network",
  "identifier" : "/documentation/Network/udp-options",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "UDP Options"
}
-->

# UDP Options

Configure options for connections that use the User Datagram Protocol.

## Topics

### Creating UDP Connections

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

Accesses the system definition of the User Datagram Protocol.

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

Initializes a default set of UDP connection options.

### Customizing UDP Connections

[`nw_udp_options_set_prefer_no_checksum`](/documentation/Network/nw_udp_options_set_prefer_no_checksum(_:_:))

Configures the connection to not send UDP checksums.

### Sending UDP Messages

[`nw_protocol_metadata_is_udp`](/documentation/Network/nw_protocol_metadata_is_udp(_:))

Checks whether a metadata object represents a UDP datagram.

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

Initializes a default UDP message.



---

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)