thats true. but philosophically, its the same reason as teh UNIX read system call doesn't have a timeout. if you want to read, read. if you need a timeout, thats what alarm() is for, or as mikko says, do polling.
On Jul 6, 2011, at 11:58 AM, Mikko Koppanen wrote: > On Wed, Jul 6, 2011 at 9:48 PM, Christian Martinez <[email protected]> > wrote: >> Quick question, am I missing a timeout option for a blocking receive perhaps >> in one of the flags? If it’s not there, is there a philosophical or >> technical reason for it not to exist? > > Hi, > > you can use zmq_poll with a timeout to see when the socket becomes readable. > > > Thanks, > Mikko > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > ------------------ Andrew Hume (best -> Telework) +1 623-551-2845 [email protected] (Work) +1 973-236-2014 AT&T Labs - Research; member of USENIX and LOPSA
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
