Quick bytes - using UDP in Rust

This is the first post where I’m doing “quick bytes” of simple examples with Rust. This is both a way for me to keep track of some basic usage of various Rust-isms, but also a way for me to share that in case it’s helpful. I could just leave these as notes in my Obsidian vault, but why not share! UDP The User Datagram Protocol (UDP) is the lesser known sibling of the Transmission Control Protocol (TCP). The simple difference is TCP is guaranteed and UDP is not. What I mean is, UDP is like “fire and forget” and TCP has a whole retry mechanism. There are of course other differences, but that’s what I see as key to understand. UDP is also used for “multicast” where a packet is broadcast to multiple recipients. ...

April 1, 2025 · 3 min · Ray Suliteanu