Should row_prep() return error code when "some" row data can not be

This is a discussion on Should row_prep() return error code when "some" row data can not be within the SNMP Coders forums, part of the Networking and Network Related category; --===============1859533831== Content-Type: multipart/alternative; boundary="0-1500142807-1182531394=:33621" Content-Transfer-Encoding: 8bit --0-1500142807-1182531394=:33621 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-22-2007
Need Help
 
Posts: n/a
Default Should row_prep() return error code when "some" row data can not be

--===============1859533831==
Content-Type: multipart/alternative; boundary="0-1500142807-1182531394=:33621"
Content-Transfer-Encoding: 8bit

--0-1500142807-1182531394=:33621
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit


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?

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()

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()?

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()?

d) something else perhaps?

If (b) or (c), then will you please indicate what type of error code should be returned from row_prep()

if (d), then please explain what "normal" SNMP handling would be in the case where all data fields can not be populated with valid data.





---------------------------------
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
--0-1500142807-1182531394=:33621
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<br>Lets say I have four fields(columns) in a row.&nbsp; 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.&nbsp; 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?<br><br>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() <br><br>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()? <br><br>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()? <br><br>d) something else perhaps?<br><br>If (b) or (c), then will you please
indicate what type of error code should be returned from row_prep()<br><br>if (d), then please explain what "normal" SNMP handling would be in the case where all data fields can not be populated with valid data.<br><br><br> <br><p>




<hr size=1>Looking for earth-friendly autos? <br> <a href="http://autos.yahoo.com/green_center/;_ylc=X3oDMTE4MGw4Z2hlBF9TAzk3MTA3MDc2BHNlYwNtYWls dGFncwRzbGsDZ3JlZW5jZW50ZXI-">Browse Top Cars by "Green Rating"</a> at Yahoo! Autos' Green Center.
--0-1500142807-1182531394=:33621--


--===============1859533831==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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/
--===============1859533831==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--===============1859533831==--

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:00 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0