I wanted to add a ZeroMQ socket to a glib program.
The pitty is, a zmq socket is not
timeout = 0
timeout = 100
I found that newer zmq libraries support the
getsockopt() parameter, which gives you back a unix
fd which you can
poll(). The only caveat is that you can't just
poll() it to know if you can
send() from / to it, but you need to use the
getsockopt() parameter to get back the real
It seems to be working quite well in glib.