Re: Doing things in a callback routine

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 29 March 2010 16:16, Thomas Andrews <[email protected]> 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&#174; 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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.