On 19 March 2012 19:20, Simon Chamlian <[email protected]> wrote:
> Since the handler function is called for each OID in the table

No - the handler function is called with a list of the (relevant)
OIDs in the incoming request.

> (so one request at a time)?

No.
One of the changes introduced with the v5 handler-based approach
(compared to the earlier UCD style) is that all of the (relevant) OIDs
in the request are passed to the handler in one go.
   This allows the handler to process the varbinds individually, and
then do additional checks on the whole list (e.g. checking for any
missing mandatory values in a SET request).

But it does mean that the handler must loop through the full list
of varbinds.    It cannot assume that there will be only one.

Dave

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
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

Reply via email to