2008/5/29 杨伟 <[EMAIL PROTECTED]>:
> As I know, MIB has one datatype called SEQUENCE OF which is also called
> table or entry. I want to konw how the SEQUENCE OF is implemented in
> Net-SNMP.

SEQUENCE OF doesn't really exist  - it's more of a design
construct rather than a data structure as such.

It's used in two ways within SNMP
 - for defining the structure of one row of a table
   This is usually represented as a C 'struct'
    of the column fields appropriate to that table.

 - for defining the table as a collection of rows
   This is usually implemented as an array or list
    of individual per-row C 'struct's.

Have a look at the code under 'agent/mibgroup' for various
ways this has been done.


> By the way, I'd like to do some application on the Net-SNMP API.
> Any one have some docs on this API?

See the man pages (under 'man' in the source tree),
or the project web pages.

Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to