[zeromq-dev] In-process messaging

Martin Sustrik sustrik at 250bpm.com
Sat Nov 21 21:03:57 CET 2009


Hi all,

For those interested in inter-thread messaging, initial version of the 
code was commited to 0MQ/2.0 trunk.

Example:

   Publisher thread:

     zmq::socket_t s (context, ZMQ_PUB);
     s.bind ("inproc://my_endpoint_name");

   Consumer thread:

     zmq::socket_t s (context, ZMQ_SUB);
     s.setsockopt (ZMQ_SUBSCRIBE, "*", 1);
     s.connect ("inproc://my_endpoint_name");

Martin



More information about the zeromq-dev mailing list