[AGENT++] MibComplexEntry and find_succ implementation

COMPAN Arnaud compan at ipanematech.com
Thu Sep 25 16:49:35 CEST 2008


Hi All,
 
I use SNMP++ and AGENT++ for a long time now: our agent is implemented
using classes derived from MibTable. So, everything is handled by
AGENT++ and everything is working fine :)
Currently, I'm rewriting our agent using classes derived from
MibComplexEntry. So I have to implement find_succ and get_request
methods for each table.
But there is a problem. I have 2 tables A and B. A::find_succ returns
the next oid in the table and when the end of the table is reached, it
returns the first OID in the B table. But then, the following
get_request (for the first OID of the B table) is received by the A
table, which can't answer of course.
Is it an expected behavior ? Do I have something special to do in
find_succ or get_request when the end of the table is reached ?
I've tried to return an empty OID when the end of a table is reached and
it doesn't work.

Thanks in advance for the help.
Best regards,

Arnaud



More information about the AGENTPP mailing list