service chat application

mograbi33

New member
Joined
Sep 1, 2004
Messages
1
Hi all,

I have this question:
Which protocol UDP OR TCP is better to use for client/server applications?

I
 
TCP would definitely be the way to go in this situation. With UDP, there is a chance
that messages will never be delivered, and in this case one undelivered message
sounds like it could cause some trouble. UDP is generally reserved for when a few
lost messages are not important, such as the constant movement of players in a
multiplayer game (where many of these messages are sent per second). TCP ensures
these messages get delivered safely, and if you become disconnected for whatever
reason, you know instantly and can handle it.

Theres a nice explanation here
 
Back
Top