[zeromq-dev] zmq_poll and fully asynchronous client-server

Jigar Gosar jigar.g at directi.com
Fri Jun 1 14:55:10 CEST 2012

* How can one interrupt a zmq_poll call.

* The reason I need this is to reduce the latency of data that has to
be sent out.

* Here is an example scenario:

* I need to be able to read and write to a zmq socket, concurrently as
and when events in the system are generated.

* If I do zmq_poll with a timeout of 10ms, and a packet arrives in the
system to be written to that socket, I need to be able to wakeup from
the zmq_poll call, so that the latency of the packet is not
unnecessarily increased by 10ms.

*  Java's "selector" has a wakeup method, which immediately returns
the "selector.select(10ms)"  blocking call. I need something similar
so as to be able to achieve the above goal.

* Is there any way to achieve read/write efficiency, without busy
looping on the zmq_poll call? or is it impossible to achieve in zmq?


Jigar Gosar

More information about the zeromq-dev mailing list