This sounds like a use for SIGALRM. In Python: 

http://docs.python.org/release/2.5.2/lib/node545.html 

-- 
Justin Cook


On Friday, 20 April 2012 at 08:53, Raphael Bauduin wrote:

> Hi,
> 
> I need a process to send a request to a server, and wait a maximum of
> (let's say) 300 milliseconds. If no reply comes in this time span, a
> default action should be taken.
> 
> Is using a poller the only solution to this? I'm using the ruby
> bindings (rbzmq), and didn't see any reference to pollers in the rdoc.
> 
> Thanks
> 
> Raph
> _______________________________________________
> zeromq-dev mailing list
> [email protected] (mailto:[email protected])
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev



_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to