J
Justin Creasy
If this is the wrong group for this posting please let me know and I'll
move it.
I have an application that has an ArrayList of sockets to clients. For
standard one-to-one messages my application works great, the problem is
if I want to "broadcast" a message to all my clients. Right now I just
iterate through my sockets list and send the message to each client.
This works fine until I need to send something large like a file. Is
there a way that I can either send a byte stream to multiple sockets at
the same time, or have a socket that each client has a connection to?
If there is such a structure, does it actually broadcast, or does it
iterate through the clients and just make it look like it's
broadcasting. When I used to do MPI programming broadcasting was
faster, but only a little bit faster than iterating through, so I'm not
sure if .NET would be the same.
Anyways, thanks in advance, and if there's a better group for this
question please let me know.
move it.
I have an application that has an ArrayList of sockets to clients. For
standard one-to-one messages my application works great, the problem is
if I want to "broadcast" a message to all my clients. Right now I just
iterate through my sockets list and send the message to each client.
This works fine until I need to send something large like a file. Is
there a way that I can either send a byte stream to multiple sockets at
the same time, or have a socket that each client has a connection to?
If there is such a structure, does it actually broadcast, or does it
iterate through the clients and just make it look like it's
broadcasting. When I used to do MPI programming broadcasting was
faster, but only a little bit faster than iterating through, so I'm not
sure if .NET would be the same.
Anyways, thanks in advance, and if there's a better group for this
question please let me know.