2 ms·
> within 5 mins from the sender initiating the send? Based on a strict reading of the readme you actually need to receive in the same 5min window. This means
by kevincox 6y ago
> within 5 mins from the sender initiating the send?
Based on a strict reading of the readme you actually need to receive in the same 5min window. This means that you have at most 5min. If you send at the end of the window you can have less than a second.
A simple solution is to have the sender always round up (to the end of the current 5min window) and have the receiver search for windows rounded up and down. (Or have the sender broadcast two and the receiver look for one)
If you want more time the sender can keep broadcasting a new window every 5min until the receiver connects.
- dennis-tra 6y agoThat's indeed correct and was exactly what I meant with > I haven’t covered edge cases So, thanks for your suggested solution! I think that's how I would implement it as well. The receiver looks for two windows and the sender broadcasts new entries when 5min are over.