[zeromq-dev] [PATCH] Add ZMQ_TIMEOUT sockopt.
ph at imatix.com
Mon May 23 21:31:06 CEST 2011
2011/5/23 Fabien Niñoles <fabien.ninoles at gmail.com>:
> I, personnaly, prefer the linux behavior (return EAGAIN, just like a
> non-blocking call would do) than the Windows behavior (scrap my socket
> entirely). I would probably leave the Windows implementation as is
> and check on the linux side.
The reason for matching existing names is familiarity. In fact you'd
use ZMQ_RCVTIMEO / ZMQ_SNDTIMEO (I guess) and make the semantics work
the right way, whatever the OS.
Also, I'd recommend to just use an int value, for simplicity...
You're not depending on the OS for the timeout functionality, are you?
More information about the zeromq-dev