[zeromq-dev] Problem using inproc - What am I doing wrong?

Ian Barber ian.barber at gmail.com
Sat Aug 25 12:17:29 CEST 2012

On Sat, Aug 25, 2012 at 2:12 AM, Iggy Philly <iggy.philly at hotmail.com> wrote:
> I did try adding this (for several differnt filters including ""):
> string filt = "test";
> zmq_setsockopt(socket, ZMQ_SUBSCRIBE, filt.c_str(), filt.length());

Yep, you need to add that in - by default SUB will reject all messages
(so you don't get a full stream) unless you have set some matching up,
which can be blank. You are waiting a good amount of time, so it
should work if you put that back in, but try sending a few messages in
a loop and see if you get any coming through - if not, update your
code sample to include the subscribe sockopt and post it back to the
list and we can take another look.


More information about the zeromq-dev mailing list