Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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 :-)



I 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.


UDP 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: