[AGENT++] SNMP++v3.2.10a: Callback data, pdu_error and some protocol specifics questions ...

Jochen Katz katz at agentpp.com
Sun May 23 23:18:17 CEST 2004


Hi,

> The first one is, what is the purpose of the callback data
> when I register to traps?. I saw that in the Qt example they placed
> "this" in the member function notify_register.

this pointer is passed to the callback function and is not used within 
snmp++. You can pass NULL if you don't need it.

> The second one is,
> how does SNMP++ knows when an incoming PDU has errors, what kind of
> check is performed?.

snmp++ should test for any possible errors that can be detected without 
knowing MIB definitions.

> The last one is regarding to the protocol itself.
> When I use the function broadcast_discovery with the network base
> address, I get funny results.

As broadcast SNMP packets are not part of any SNMP standard, anything 
can happen when sending SNMP packets to a broadcast address.

Regards,
   Jochen



More information about the AGENTPP mailing list