On 29 March 2010 16:16, Thomas Andrews <tandr...@grok.co.za> wrote: > In a callback routine for netsnmp_register_int_instance() I would like > to be able to do things like turn on a kettle. > > My problem is that in the callback I don't know if it's a GET or a SET.
Have a look at the "watched_scalar" helper instead. This uses the standard handler API, so does provide information about GET vs SET, etc. > It seems that the callback routine is called > almost as an afterthought. You might think that - I couldn't possibly comment. Dave ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users