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?
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:
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.