Let's see what socket programming looks like in Rust, using either the nix library or another that offers an interface to the sockets API.
Adapt anything from the CS:APP book that uses sockets. It could be as simple as the echo server. However, note that this is not actually simple! CS:APP hid the details of the socket interface behind two or three csapp.c functions.