3 ms·
Especially when you can disable Nagle's algorithm, there often isn't a reason to use UDP. If you don't care about your data, I can see each argument for UDP, bu
by beatgammit 8y ago
Especially when you can disable Nagle's algorithm, there often isn't a reason to use UDP. If you don't care about your data, I can see each argument for UDP, but if you do, you'll have to reimplement TCP anyway...
- heavenlyblue 8y agoTCP per se doesn't allow for situations where if I know that packet A with an update U1 to a structure S hasn't yet reached the destination - then I would like to automatically discard A with U1 and send a packet B with update U2. Essentially the issue with TCP is that it's based on queues, rather than having a callback that could simply poll the applicatio:n "hey - I couldn't yet send that data - do you have an update so that I could retry with the fresh one?"