[AGENT++] Set value by set_row( ), doesnot check syntax

Frank Fock fock at agentpp.com
Fri Nov 14 22:09:26 CET 2003


Rajeev,

The set_row method is generated by AgenPro and uses
type save assignments. Of course, you can set any type
to an object programatically, who should prevent that
and why?
If a value is set via the SNMP SET operation, AGENT++
does type checking as long as you have not overwritten
that behavior.

Best regards,
Frank

Rajeev Bhatia wrote:

>Hello,
>
>I am new for the Agnet++ user. I just wanted to know
>Is it the user(developer) responsibilty to check the syntax for the value to
>be set. As I noticed that if by mistake in my set_row() I assign the
>OctetStr value for MIB integer variable, Agent doesnot complain and set that
>value as string.
>So it should be the Agent job to do Syntax varification or I should do it in
>my set_row() for each variable that is going to be set.
>
>Thanks and regards
>Rajeev Bhatia
>
>
>_______________________________________________
>AGENTPP mailing list
>AGENTPP at agentpp.org
>http://agentpp.org/mailman/listinfo/agentpp
>
>  
>






More information about the AGENTPP mailing list