Jay1q2w/UDP-Streaming-Packet-Loss-Recovery ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple demo for streaming data over UDP that can handle packet loss and still recover smoothly.

I want a sender, a receiver, and a relay in the middle so I can test what happens when packets get dropped or delayed. The app should show the stream continuing as best it can, with some basic recovery so missing pieces can be resent or filled in without breaking everything. Keep it easy to run from one command if possible, and make sure the sender and receiver can talk through the relay.

Please include a small way to measure how well it performs, like tracking lost packets and whether recovery worked. If you need to check current docs or best practices for socket behavior, go ahead and look them up online. I’d also like it to be organized so I can run a quick demo and see the results without a lot of setup.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab