[AGENT++] MibComplexEntry and find_succ implementation
COMPAN Arnaud
compan at ipanematech.com
Fri Sep 26 14:42:40 CEST 2008
Thanks for your help.
It works now. I did not realized that the find_succ implementation for a table must take care of the end of the previous table (ie be able to return the first oid of its table when the last oid of the previous table is reached).
Best regards,
Arnaud
>> -----Message d'origine-----
>> De : Frank Fock [mailto:frank.fock at t-online.de]
>> Envoyé : Thursday, September 25, 2008 10:43 PM
>> À : COMPAN Arnaud
>> Cc : agentpp at agentpp.org
>> Objet : Re: [AGENT++] MibComplexEntry and find_succ implementation
>>
>> 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#ebae0873c7c9
>> 6ed09c4ef53fd42da609
>>
>> 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
>> >
>> >
>> >
>>
>>
>>
More information about the AGENTPP
mailing list