[zeromq-dev] ZMQ_FD with request sockets

Yi Ding yi.s.ding at gmail.com
Fri Dec 9 14:36:27 CET 2011



On 12/9/2011 7:34 AM, Martin Sustrik wrote:
> 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
Yes, that appears to be the behavior.  Only after I call send is the
socket actually readable right?  Before I call send the socket is still
not-readable, correct?



More information about the zeromq-dev mailing list