[zeromq-dev] ZMQ_FD with request sockets

Martin Sustrik sustrik at 250bpm.com
Fri Dec 9 14:34:23 CET 2011


On 09/12/11 14:23, Yi Ding wrote:

> Right, I get that it's edge-triggered.  What surprised me is that even
> though there was a state change (from nothing on the wire ready to be
> read to something is ready to be read) it wouldn't notify me unless I
> had called recv before the state change happened.

The initial state is "readable".

Only after you call recv and get nothing, the state switches to 
not-readable.

Martin



More information about the zeromq-dev mailing list