Rust network programming materials
1. Sockets and async (start here)
std::net(TcpListener,TcpStream) for blocking basics.- Tokio for real work. Its official tutorial (tokio.rs/tokio/tutorial) builds a mini-Redis server and client, which covers framing, shared state, and graceful shutdown.
tokio-utilcodecs (Framed,LengthDelimitedCodec) for protocol framing, and thebytescrate for buffers.- socket2 when you need options
stddoesn’t expose (SO_REUSEPORT, keepalive tuning, buffer sizes,TCP_NODELAYvariants). mio if you want the epoll layer under Tokio.
2. Packets and raw access