[AGENT++] MibComplexEntry and find_succ implementation
Frank Fock
fock at agentpp.com
Thu Sep 25 22:55:48 CEST 2008
Hi Arnaud,
At the end of the table you have to return a zero length OID as
described here:
http://www.agentpp.com/doc3.x/classMibEntry.html#ebae0873c7c96ed09c4ef53fd42da609
Best regards,
Frank
COMPAN Arnaud wrote:
> 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
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the AGENTPP
mailing list