How about using multicast, if you can deal with the lack of reliability etc?

On Wednesday, December 18, 2013 10:56:58 AM UTC-8, Ashish wrote:
>
> Hi,
>
> This is about server being developed on Windows. When the server needs to 
> send *same* message to multiple clients, this is how my function looks 
> like:
>
> void BroadcastMessage (uv_stream_t** client_handles, int NumberOfClients, 
> uv_buf_t* message) 
> {
>     for (int i=0; i<NumberOfClients; i++)
>     {
>         uv_write(write_req, client_handles[i], message, 1, after_write);
>     }
> }
>
> However, as per my understanding this code will generate multiple copies 
> of same buffer (message) in kernel.
>
> Is there any better  way to do message broadcast to multiple clients?
>
>
> Tnx,
> Ashish
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to