3 ms·
> I couldn't make it integrate with my main event loop You can get a file descriptor from ZMQ to use with your own event loop (depending on your event loop of
by froskur 6y ago
> I couldn't make it integrate with my main event loop
You can get a file descriptor from ZMQ to use with your own event loop (depending on your event loop of course). I have done this successfully in the past with an epoll (iirc) based event loop.
The documentation is at [1], the ZMQ_FD option. You do have to read the instructions very carefully though.
[1] http://api.zeromq.org/master:zmq-getsockopt http://api.zeromq.org/master:zmq-getsockopt