[zeromq-dev] Dropping connection end points dynamically

Ian Barber ian.barber at gmail.com
Thu Apr 19 11:25:10 CEST 2012


On Wed, Apr 18, 2012 at 8:23 PM, Radha Krishna Srimanthula <
srimanthula.radhakrishna at gmail.com> wrote:

> I plan to create the socket, manage the end points and do the pub-sub
> communication in three different threads. For various legacy reasons, I
> need to use the existing threading model -based on pthreads- for now (I
> plan to move to zeromq's threading model later). Is there a potential
> failure scenario here? Is it ok to use three different threads for the
> above said purposes?
>

Generally, don't move sockets between threads, but you can create different
sockets in different threads with the same context without problem. By the
sound of it you should just be able to create a socket per thread through
and carry on normally.

Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120419/bcd79cac/attachment.htm>


More information about the zeromq-dev mailing list