previews/udp-server-binary.png

Repository

https://github.com/EricSpencer00/UDP-server-binary

Tools

  • udprecv: Binds to a UDP port, receives one packet, prints sender and payload.
  • udpsend_stream_file: Sends a file as UDP packets.

Commands

make
./bin/udprecv 9000
./bin/udpsend_stream_file 127.0.0.1 9000 test.bin
nc -u -l 9000 > received.bin
shasum -a 256 test.bin received.bin

Build

  • make produces binaries in bin/.

Notes

  • UDP is lossy.
  • Extendable for sequence numbers or timestamps.