Hacker News new | ask | show | jobs
by froskur 2065 days 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