Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Broadcasting messages with Indy
| Subject: | Broadcasting messages with Indy |
| Posted by: | "David Hooker" (david.d.hook..@gmail.com) |
| Date: | 17 May 2006 23:22:42 |
Is there a way to send the same message to many other computers in
parallel using Indy without requiring a thread per connection?
For example, say I have an enourmous array of connections and I want to
send the same message to them all (but all of these connections are to
other addresses on the Internet, so I would expect that UDP broadcasts
wouldn't work). I would like to send all messages at the same time.
Using one thread to send all the messages seems to require that all
messages be sent in series. I think that this option would be prone to
bad/flakey connections and might require tens of seconds to timeout and
be ready to send to the next connection in the array.
On the other hand, requiring one or two threads per connection would
require a lot of resources, even if most threads are blocked most of
the time.
Does anyone have any ideas?
Thankyou, David.