[zeromq-dev] ZMQ_RCVTIMEO and ZMQ_DONTWAIT

Amr Ali amr.ali.cc at gmail.com
Sat Nov 12 16:32:28 CET 2011


I was reading the documentation and stumbled upon something a little confusing ...

In 3.x.x socket options now have ZMQ_RCVTIMEO which basically sets a timeout on
all recv() operations. But there's also ZMQ_DONTWAIT flag for a particular
recv() operation.

My question is, which supersedes which? If I set ZMQ_RCVTIMEO on a socket to
something like 100ms, and added the flag ZMQ_DONTWAIT to to a particular recv()
operation on that socket? what would be the expected behavior?

In general what is the relationship semantics between ZMQ_RCVTIMEO and ZMQ_DONTWAIT?

Thanks!
-- 
Amr Ali

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111112/ec55ce10/attachment.sig>


More information about the zeromq-dev mailing list