Let's say a source A is sending me an unknown number of messages using UDP. How can I intercept all those messages? This is the complete scenario:
- Send 7 messages
- Wait for their ACKs
- Process ACKs
- Send another batch
- Repeat...
Problems: (1) I don't know how many messages arrive, some may get lost and some are repeated, and (2) I might be be doing something else later, so I cannot wait forever.