Re:Is it just me or is networking really hard?
by Retric on Sunday September 13, 2015 @04:30PM
(#10212706)
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.
Re:Is it just me or is networking really hard?
by jorangreef on Monday September 14, 2015 @05:40AM
(#10214276)
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.
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 :-)