On Fri, 22 Jun 2007 09:56:34 -0700 (PDT) Need wrote: NH> Lets say I have four fields(columns) in a row. When the row_prep() routine is called I plan on calling four individual API routines (one for each field) to get the data to populate into the row. If the first two API calls return valid data, but the third API call has trouble getting the data, then what would you recommend would be a "normal" SNMP response to the overall request?
Well that depends. If you can somehow flag which fields have valid values (perhaps by adding another flag field and using the column flags), you could simply proceed and wait to see if the actual data is needed. NH> a) set the third field to some init value, try to get the data for the fourth data field and then return MFD_SUCCESS from row_prep() In generaly, you probably shouldn't lie to the client. NH> b) set the third field to some init value, do NOT try to get the data for the fourth data field and then return some MFD ERROR response code value from row_prep()? NH> NH> c) make sure the complete row (all fields) are cleared of data (so the row does not have good and bad data populated at once) and return some MFD ERROR response code value from row_prep()? These are pretty much equivalent.. once you return an error, the data won't/shouldn't get back to the client... ------------------------------------------------------------------------- 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
