[zeromq-dev] amqp client mode from C

Michael Nacos m.nacos at gmail.com
Tue Jun 16 16:34:44 CEST 2009

Hi Martin,

I was able to get my test code to work thanks to your suggestions with
these lines in the config file

   <node name = "E" location = "zmq.tcp://localhost:9999"/>
   <node name = "Q" location = "zmq.tcp://localhost:8888"/>

these lines in the sender:

eid = zmq_create_exchange (object, "E", ZMQ_SCOPE_LOCAL, "",
zmq_bind (object, "E", "Q", NULL, "MyQueue");

and these lines in the receiver:

qid = zmq_create_queue (object, "Q", ZMQ_SCOPE_GLOBAL, "lo",
zmq_bind (object, "E", "Q", "MyQueue", NULL);

I haven't really tried the AMQP stuff yet.

btw, how would you go about checking if the connection to the zmq
directory service was successful?

object = zmq_create("localhost:5682");

I have tried if(object) but it doesn't work

thanks, Michael

More information about the zeromq-dev mailing list