Branch: Tag:

2006-01-20

2006-01-20 01:30:31 by Martin Nilsson <mani@lysator.liu.se>

Added readmsg timeout by suggestion from Adam Montague

Rev: lib/modules/Protocols.pmod/SNMP.pmod/protocol.pike:1.16

17:   //! 2570 : v3 description   //!    - // $Id: protocol.pike,v 1.15 2005/11/26 04:01:43 nilsson Exp $ + // $Id: protocol.pike,v 1.16 2006/01/20 01:30:31 nilsson Exp $         #include "snmp_globals.h"
239:   mapping readmsg(int|float|void timeout) {    mapping rv;    +  if(timeout && !wait(timeout)) +  return 0; +     rv = read();    return rv;   }