On Fri, 2005-09-30 at 15:48 -0400, Robert Story wrote:

> DS> This [interpreting indexes]
> DS> is done for each varbind separately (since a single request may
> DS> well refer to several different rows).  That's the purpose of the loop
> DS> through the 'requests' parameter - each entry in this list refers to
> DS> a different varbind.
> 
> This is exactly what the row_merge helper is for. It will call the table
> handler once for each index, instead of once per varbind.

Errr...  no - that's not true.   (Sorry, Robert!)

The handler will normally be called *once* - not once per varbind -
with a list of *all* the varbinds relevant to that table (regardless
of index value).

But Robert is correct that the 'row_merge' helper could be used to
partition a single (multi-row) request into separate calls for each
row.  That would result in several calls to the handler (rather
than just one), with all the entries in the 'requests' list referring
to the same row (so extracting the index would only need to be
done once).


Dave


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to