network.udp · function ·
MaximumUdpDatagramBytes
Maximum udp datagram bytes.
Exchange bounded UDP datagrams; your application owns its protocol and session rules.
external MaximumUdpDatagramBytes() returns intStatus: source-declared
Use MaximumUdpDatagramBytes
A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.
cpu · source-example · type checked
using network.udp
// Exchange bounded UDP datagrams; your application owns its protocol and session rules.
int result = MaximumUdpDatagramBytes()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.network_udp__maximumudpdatagrambytes"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
[[dependencies]]
package = "network.udp"
version = "0.1.0"
path = "../../../yeho/packages/network/udp"
Notes and source
Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.
yeho/packages/network/udp/udp.yh:112