Purpose: UDP sockets on an IPv4 interface, with the echo-server example.
Template. An essay with examples, not a copy of the header: replace each TODO with prose. Every function is in libude-udp(3) and
include/ude_udp.h.
TODO: An echo server in 20 lines
- The example from the README ("libude-udp in 20 lines").
TODO: Ports and checksums
- Ephemeral ports from 49152; ICMP port unreachable; 1472-byte limit.
TODO: Before an address exists
ude_udp_set_unconfigured_rxandude_udp_sendto_ex, for DHCP.
U: box "ude_udp" "port 7" fit I: box "ude_ipv4" fit at U + (0, -1.0) arrow <-> from U.s to I.n text "TODO: datagrams arrive in a callback" at U + (2.2, -0.5)→ /pikchrshow