Hi Ashish!

I'm afraid that multiple copies will need to be generated anyway. At
least, I'm not aware of any method to do it on unixes, and pretty sure
that it should not be possible on windows as well.

Cheers,
Fedor.

On Wed, Dec 18, 2013 at 10:56 PM, Ashish <[email protected]> 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.

-- 
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