Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Jan : Re: UDP Multicast ?
| Subject: | Re: UDP Multicast ? |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Wed, 16 Jan 2008 16:21:34 |
"Jamie Dale" <jamie.dale@yahoo.com> wrote in message
news:478e7ff8$1@newsgroups.borland.com...
> Theoretically UDP on a private network should be pretty safe
Only if multiple subnets are not involved. Routers tend to disable UDP data
passing from one subnet to another by default.
> yes there is less overhead as UDP doesn't have a direct connection with
> all the clients and thus doesnt loop through all to broadcast the message.
That is not the only reason why there is less overhead. UDP also does not
have the acknowledgement model that TCP has. When you send data in UDP, it
is just pushed out onto the network and then forgotten. TCP, on the other
hand, has to recognize and acknowledge every piece of data being sent.
> TCP will be more resource hungry as you will need to loop through
> your client list and send the data to each client individually.
That is not much of a resource issue, though. More of a timing issue,
though.
> If one client has disconnected, frozen etc, it could raise an error of
> some
> sort which you would need to handle (so i would suggest experimenting
> with the error side of things if you use TCP)
You still have to handle errors when using UDP.
Gambit
none