On 10/12/2007, Giuseppe Modugno <[EMAIL PROTECTED]> wrote:
> Scalar helper is based on instance handler, so it is serialized too.
> Is it correct?

Err... probably, yes.



> > > When I register a custom scalar or a group of scalar, what should I write 
> > > in
> > > the MODE_GET case (but also in MODE_SET and so on) in my custom handler?
> >
> > Process the 'requests' list - as above.
>
> But that is true for group of scalars only. I think a single variable
> registered as a scalar could be treated as an instance, so requests
> has surely only *one* element and I needn't to process the 'requests'
> list. Is it correct?

Ummm....   not sure.

The safest thing is always to process the 'requests' parameter as a list.
If you happen to be using a serialized helper chain, then the list will
consist of one element.  But the code will still work, and the overheads
will be minimal.

Better that then assuming the requests will be serialized, and then
getting stung when they're not!

Dave

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to