[zeromq-dev] In-process messaging
jon at totient.co.uk
Sun Nov 22 17:02:39 CET 2009
On Saturday 21 Nov 2009, Martin Sustrik wrote:
> Hi all,
> For those interested in inter-thread messaging, initial version of the
> code was commited to 0MQ/2.0 trunk.
> 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");
Thanks Martin this looks very interesting.
In the current implementation where is the pattern match performed?
at the subscriber or publisher end?
More information about the zeromq-dev