On Sun, Jan 7, 2018 at 10:20 AM, Doug Coleman <doug.cole...@gmail.com> wrote:
> You are right. You would have to use the zeromq nonblocking api, if it exists.

There's zmq_poll which you could spawn in a factor thread and run with
a low timeout to check if any zmq events are occurring:

http://api.zeromq.org/2-1:zmq-poll

There's also a way to get a file handle from a 0mq socket which you
can use select, epoll, etc on, but it has some limitations:

See ZMQ_FD here: http://api.zeromq.org/2-1:zmq-getsockopt

There's some notes on that here:
https://funcptr.net/2012/09/10/zeromq---edge-triggered-notification/

-- 
http://bluishcoder.co.nz

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to