[zeromq-dev] Windows and PGM
Brian Granger
ellisonbg at gmail.com
Sat Mar 27 04:36:03 CET 2010
Martin,
> So what you'll have would look something like this:
>
> void *ear = zmq_socket (ctx, ZMQ_SUB);
> zmq_bind (ear, "tcp://127.0.0.1:5001");
> zmq_setsockopt (ear, ZMQ_SUBSCRIBE, "forex.", 6);
> void *mouth = zmq_socket (ctx, ZMQ_PUB);
> zmq_connect (ear, "tcp://127.0.0.1:5001");
> zmq_device (ZMQ_FORWARDER, ear, mouth);
I like this API alot. Also, this idea would solve the issue of
implementing a heartbeat mechanism. It would just be a device and you
could pass it any socket you want as the responder. I do like the
idea of having the event loop of the device hidden inside zmq_device
and run in a thread. Because of the GIL/threading issues in Python,
we definitely need to have devices run in C++ thread.
Cheers,
Brian
> Thoughts?
> Martin
>
--
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com
More information about the zeromq-dev
mailing list