Working with SnmpInt32 and SnmpUInt32

Billy Davis billy.davis____onfiber.com
Mon Nov 5 22:04:03 CET 2001


 
    I am writting a SNMP Trap Collector application. In the application I
call a functions for each Vb that is received. My problem is that if the Vb
value is a SnmpInt32 value the code works as one would expect. But if the
value is a SnmpUInt32 value I don't get the correct value. What am I doing
wrong here? I have included two snippets of the code that show what I am
trying to do.
 
this function works.....
void someFunct( Vb & aVarRef )
{
    SnmpInt32 val;
    aVarRef.get_value( val );
}
 
this function doesn't work....
void someFunct( Vb & aVarRef )
{
    SnmpUInt32 val;
    aVarRef.get_value( val );
}

Thanks
Billy Davis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.agentpp.org/pipermail/agentpp/attachments/20011105/772bb1f8/attachment.htm 


More information about the AGENTPP mailing list