>>>>> On Sun, 4 Jan 2009 02:59:33 +0200, "Nikos Balkanas" <[email protected]> 
>>>>> said:

NB> I know how to get the values for each row/column. If I keep the old
NB> values in an array, I could iterate through them and do it; I was
NB> wondering if there is a better way to do it through a flag that i am
NB> missing or something.

There are multiple ways of doing it and depending on which type of
internal data structure you have helps decide how to do it.  Generally
speaking, you need to look at the incoming index values pulled out of
the OIDs for the SET and use that data to look up the rows in your
current data.  Then you go through the SET phases and replace the old
values with the new at the appropriate point (keeping the older ones
around till the FREE or UNDO phases).

Many of the table handlers help you do this sort of thing (eg the
iterator helper helps you walk through your data, but is inefficient).
If you're writing your own without any of the above helpers it'll take
more work.

You might at least look at the row_merge helper, which groups all the
incoming requests together by each row so you can safely loop through
the request chain and know they're all affecting the same row.
-- 
Wes Hardaker
Sparta, Inc.

------------------------------------------------------------------------------
_______________________________________________
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

Reply via email to