[zeromq-dev] ZMQ_FD clarification

Maurice Barnum msb at yahoo-inc.com
Tue Dec 23 21:24:56 CET 2014


In the 4.0 api documentation for getsockopt, I see this:

"As the descriptor is edge triggered, applications must update the state of ZMQ_EVENTS after each invocation of zmq_send or zmq_recv."

I don't understand what it means to update the state of ZMQ_EVENTS as it is not documented as with zmq_setsockopt()..  Do I need to call zmq_getsockopt(..ZMQ_EVENTS..) after I am done with a zmq_send or zmq_recv to see if the socket is now readable and act accordingly?

Thanks.



More information about the zeromq-dev mailing list