hi ,all i saw some examples about using the iterate template, but still got something confused.
in my thought,when using this template,we should follow some steps: first,initial our table in the init_... function,and register it correctly. then we usually form a linked list whose node is just an entry in our table. when we get a request,for example ,GET,we just update the linked list with data running out of the agent and return the correct value. am i right? my first question is about these two pointers **my_loop & **my_data. do they point to one node of the linked list ,or something to do with our own data. what are they used for.i refered to the manual pages, but can't understand clearly enough. my second question, in the definition of my table structure,there is a 'int valid'.is it reserved for customer use or has something to do with the API process. in another word,can i just omit it if i don't want to use it. and the last question. we add a new entry as the head of our linked list if needed.but then probably, we will get a linked list,not corresponding to the OID index order. can we just give the API our head pointer of the linked list,leaving it work through a set of GET or GETNEXT requests automatically for us. or we have to do something more ? thx :-) _________________________________________________________ Do You Yahoo!? 150万曲MP3疯狂搜,带您闯入音乐殿堂 http://music.yisou.com/ 美女明星应有尽有,搜遍美图、艳图和酷图 http://image.yisou.com 1G就是1000兆,雅虎电邮自助扩容! http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/ ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users