On Wed, 13 Jun 2007 06:31:57 -0700 (PDT) Need wrote:
NH> I was wondering whether the row_prep() routine should be utilizing the 
cache data in that the row_prep() routine should only be called once (for the 
particular row) within the 60 seconds until the cache times out.  This means 
that subsequent "snmpget" requests (for the particular row) will not result in 
the row_prep() routine being called. 
NH> 
NH> Perhaps the cache is just used for the overall table "container" and not 
utilized for specfic rows?

Exactly.. add a 'valid' flag to your data structure.. Or use a bit (or 8)  in
rowreq_flags:

        /*
         * flags per row. Currently, the first (lower) 8 bits are reserved
         * for the user. See mfd.h for other flags.
         */
        u_int           rowreq_flags;

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to