On 12/11/2014 10:15 AM, MELWIN JOSE wrote:
> Thanks for the info.
> 
> This is the problem i facing now : 
> 
>     
> http://stackoverflow.com/questions/27400117/libuv-combines-mutliple-async-calls-and-invokes-callback-once
> 
> 
> Any other way to design the server ? 
> 

Assuming multiple loops and multiple threads are the right design for
your application, I'd say the best is to use a thread-safe queue to
store the packets. Here are a couple of useful projects:

http://concurrencykit.org/
https://github.com/trevnorris/fuq.h


Cheers,

-- 
Saúl Ibarra Corretgé
bettercallsaghul.com


-- 
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/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to