[ First - *please* don't mail me directly.  Keep discussions on
       the list, where others can both learn and offer advice.  Thanks.   ]

On Tue, 19 Oct 2004 16:36:38 -0700 Srini wrote:
SK> I am in the process of writing mib code using new style. I generated code
SK> using mib2c. For scalar I used option 1. and for tables I used option 1 and
SK> when asked for apis I selected 2.

These options sometimes change between releases, so it's more helpful if you
give us the names of the options instead of the numbers.


SK> In the generated code I see "data_context" being used, which is got by
SK> calling
SK> netsnmp_extract_iterator_context(request).
SK> Can you let me know what this is, and how to use it in the code?

In the get_first and get_next routines, you set and iterator context and a data
context for the current index. When the correct index is found, the data
context is stored with the request, so you can get to it from your handler. It
will be whatever the data value was for the row in question.

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to