[AGENT++] Vb::get_value(...) and IP-address

Frank Fock fock at agentpp.com
Mon Aug 9 22:38:09 CEST 2004


Hello Karl,

In case of an IpAddress syntax, you will have to use the 
MibLeaf::get_value(SnmpSyntax&)
method to extract the leaf's value. For example:

IpAddress ipAddress;
myMibLeaf->get_value(ipAddress);

Hope this helps.

Best regards,
Frank

Karl Abicht wrote:

>Hello Frank,
>
>how to get an IP-address from a Vb.
>
>My browser sends an IP-address, I receive a Vb of type sNMP_SYNTAX_IPADDR.
>But, if I try to get the value with get_value(unsigned char *ptr, unsigned
>long &len) it fails because the method expects sNMP_SYNTAX_OCTETS.
>
>
>
>Regards,
>
>Karl
>
>  
>





More information about the AGENTPP mailing list