[zeromq-dev] What's wrong with this sample?

Rick & Nellie Flower nrf at ca-flower.com
Fri Jan 20 07:26:44 CET 2012


Hi all.. I'm new to 0MQ -- only found it this morning.  I'm trying to set it up 
initially to have N threads (probably ~10) logging messages to a central 
but separate thread that will receive the packets and log them to a file.. 

So, I found a sample pthread based sample and modified it to use 
ZMQ_PUSH and ZQM_PULL over an inproc://logging backend.
However, the code does not work on either Solaris 10 or OSX Lion..  
The receiver seems to run OK but the test threads doing the sends fail.  
I also tried using tcp sockets but the connect fails in the workers in that
case.. Any ideas on what I'm missing?  The version of 0MQ I'm using
is 2.1.1 (latest stable).

The code is here :
http://pastebin.com/eiZnABd2

-- Rick





More information about the zeromq-dev mailing list