Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UDP or TCP?

Status
Not open for further replies.

edgarasm

Programmer
Oct 29, 2002
26
BR
i am trying to develop a chat application and i am trying to learn how to work with sockets (indy). What protocol is more suitable for my application, udp or tcp?

Could someone give me some hint?


thanks in advance for any helpfull information.
 
I'm afraid I don't know enough about the techniques in question to advise you but if you're looking for helpful, informative sites relating to Indy then here are a couple of links:


Hope this helps!

Clive [infinity]
Ex nihilo, nihil fit (Out of nothing, nothing comes)
 
I'd recommend TCP rather than UDP. TCP guarantees that your packets will get there, as opposed to UDP which does not.

Use UDP if you're not concerned with all of you datapackets getting to the recipient - e.g. for a Quake-style game, you would send UDP datagrams to let the client apps know where everyone else is.

UDP is faster but less reliable.
TCP is reliable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top