Skip to content
modkitv0.2

UDP Networking

← All examples24_udp

Demonstrates UDP networking: - UDP socket creation - Sending and receiving datagrams - Multi-peer communication This example creates two local UDP sockets that can communicate with each other. CLI args: --server or -s : Auto-create sockets on startup --client or -c : Auto-create sockets on startup (same as --server for UDP)

UDP Networking
Number
24
Tags
networking
Requires
MODKIT_ENABLE_NETWORKING
Source
examples/24_udp/main.c

Build and run

./scripts/build-linux.sh release --target=24_udp --run