Re: Question on Iterator model without having to setup a linked list

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/6/5 Ranganathan, Viji (NSN - US/Boca Raton) <[email protected]>:
> I am trying to implement a subagent that gets data from an external data
> manager. This external data manager has it's own cache and it only provides
> interfaces to get and set data.

Does it provide an interface for
   "given one row (index) - here's the next row (index)" ?

If so, then you can use that instead of walking the links of a list.
The linked-list code is purely there as an example - the iterator
handler doesn't care how you determine the "next row" index
information.

Dave

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.