On 22 February 2010 16:03, Gerlando Falauto
<[email protected]> wrote:
> The subagent is a thread within a multi-threaded application; the actual
> data is stored as shared data (dynamic data structures) within the
> application itself.

My first question would be - how dynamic is the structure of the table?
I.e. how often do rows get added or deleted?

If the list of rows is reasonably stable, then the simplest approach
would probably be to use the 'mib2c.table_data.conf' template,
and use this to determine which row of the table is needed for
any given request.
   The table handler could then use this index information to
retrieve the dynamic data for that row directly from the application.



If the rows are more dynamic, then you'd probably have to
use the underlying application to identifying which row to use
as well.
   A possibly suitable starting point might be the (relatively
new, and mostly untested)  "mib2c.raw-table.conf" template.


Personally, I find that style of code easier to follow than the
MfD framework.   Though that may have something to do with
the fact that I wrote both of them!
   Others swear by the MfD framework.   It wouldn't be my
choice, but don't let that put you off.


Dave

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to