3 ms·
> UDP is used when it's designed by network engineers. UDP is used when low latency and low jitter is more important than complete information. For telefony i
by perlgeek 11y ago
> UDP is used when it's designed by network engineers.
UDP is used when low latency and low jitter is more important than complete information.
For telefony it's better to lose a few packets than to wait a second or two for a retransmit. Some for game state, I believe.
And I do believe that TCP was also designed by network engineers :-)
- Retric 11y agoI really depends on the game, if your writing a chess game then TCP is a much better choice than UDP. Though for anything really complex your probably going to want to use both.
- jorangreef 11y agoUDP is a lower level protocol than TCP so it's not an either/or as in "use UDP when low latency etc." is important and TCP when not. Rather, you'd want to use a protocol built on UDP whenever you want something faster, better, more reliable than TCP.