Hi,
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.
Also, if turning on the kettle failed, how can I convey that failure
back to the SET operation?
For example If I have this:
netsnmp_register_int_instance("my example int variable",
my_registration_oid,
OID_LENGTH(my_registration_oid),
&example1, my_callback_function);
Then in my_callback_function:
void my_callback_function(void) {
/* Here is where I want to know if its a GET or a SET */
/* If SET: set kettle to value X */
}
Similarly, how would I be able to read the temperature of the kettle
on-the-fly with a GET. It seems that the callback routine is called
almost as an afterthought.
Many thanks,
Thomas
------------------------------------------------------------------------------
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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users