RFC 863 defines a discard protocol, that's it, a TCP/UDP service that listens on port 9 and throws away any data it receives.
cargo build --release./target/release/tcp-discardIn another terminal:
echo "Hello" | nc -q1 127.0.0.1 9./target/release/udp-discardIn another terminal:
echo "Hello" | nc -u 127.0.0.1 9