[zeromq-dev] Socket use from several threads

moteus mimir at newmail.ru
Tue Jul 17 16:14:20 CEST 2012


Chuck Remes <lists <at> chuckremes.com> writes:

> You should create only ONE context. The context can be passed to each thread;
any socket you create in a
> thread should only be used from that thread.
> 
> I recommend that you read the guide and the FAQ. These ideas are discussed in
both places.
> 
> cr
> 

I don't like to create a socket only for one request.
(connect=>send/recv=>close)
But as I understood there is no other way.
About context - sorry for a silly question :)








More information about the zeromq-dev mailing list