Quoting "Makavy, Erez (Erez)" <[EMAIL PROTECTED]>:
1) Is there any special reason why these helpers are
implemented so differenly?

Because scalar objects (or groups of scalar objects)
are very different from tables.

(a scalar group is a specialized case of a table with
one difference being that there is no 'entry'.)

And another difference that you can have more than one row in
a table, but only one instance of each scalar object.
And another difference that there are many different types of
table indexing, so the table helper needs the flexibility to
handle this.  Scalar objects will *always* have the same instance
subidentifier, so the helper can check for this explicitly.
It would be a waste of time handling the full flexibility of
table instances.

But apart from those differences, and various others that don't
come immediately to mind - yes, the two situations are identical.



2) why does the doesn't the scalar_group_helper_handler
have a for loop for all 'requests'?

That's more of a historical accident.
The scalar_group helper is relatively new - one of the first
helpers was an "instance" helper, which was designed to process
one varbind at a time.  (See the "serializer" helper).

The scalar helper was built on top of this (to handle the
fixed instance subidentifers, mentioned above), and the
scalar_group helper came later, to simplify the registration
of groups of scalar objects.

But because these are all built on the instance helper, they've
tended to inherit the serialized nature of that original helper.
In retrospect, that was probably a mistake.  The instance/scalar/
scalar_group helpers could usefully accept multiple varbinds at
once.  Eventually we might well rework these helpers to do that,
but it's not really a high priority.

Dave

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to