[zeromq-dev] Using zmq_ipc between threads?

Pieter Hintjens ph at imatix.com
Thu Feb 21 17:23:00 CET 2013


On Thu, Feb 21, 2013 at 5:16 PM, Tobias Scharnberg
<t.scharnberg at wenzel-elektronik.de> wrote:

> maybe this is a really dumb question... but anyway. Can I use zmq_ipc
> transport for exchanging messages between two threads? I've build
> classes with router and dealer sockets which are connecting fine with
> each other when used in different processes.
> Now I've tried to use them between two threads, because I didn't want to
> exchange contexts for using inproc. But nothing seems to get through
> between these two sockets from thread to thread?

IPC works between threads, yes. Do you have a simple test case?

-Pieter



More information about the zeromq-dev mailing list