> Is there any example or description of how handle a group of scalar 
> object with new API ?

You could try using
        netsnmp_register_scalar_group

This takes the normal 'netsnmp_handler_registration' structure,
plus the first and last object subidentifiers of the group,
and will pass any valid requests for scalars in this range down
to your handler.

You'll have to use the requested OID to distinguish between the
various objects within this group, but it will handle the usual
GETNEXT->GET mapping, and you can rely on the requests being valid.

Note that this is a relatively new and untried helper.
This means:
        a)  there may be some bugs that haven't been shaken out
        b)  there are no examples of how to use it

But it should meet your requirements.

Dave



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to