Re: Re: [AGENT++] How to check whether an MibTable::update is needed or not
qinyd at tom.com
qinyd at tom.com
Wed Aug 4 05:05:58 CEST 2004
I see. I would decide whether to update or not with timeout.
But I don't understand the codes below.
if (currentRequest == req->get_request_id()) return;
currentRequest = req->get_request_id();
The id would +1 when the next subrequest coming.
And it's never equality between currentRequest and req->get_request_id().
Thanks.
Daniel
> Why do you think that the dynamic table example is incorrect?
> How you decide whether to update or not, totally depends on your
> update stragedy. What stragedy (cache with timeout, cache rows, etc.)
> do you want to adapt?
>
> Best regards,
> Frank
>
> qinyd at tom.com wrote:
>
> >Hi Frank and all list members:
> >Since the method MibTable::Update may be called once for each subrequest of the given request.
> >How to check whether an MibTable::update is needed or not
> >
> >Some examples wrote below,but it seem wrong.
> >
> > if (currentRequest == req->get_request_id()) return;
> > currentRequest = req->get_request_id();
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >AGENTPP mailing list
> >AGENTPP at agentpp.org
> >http://agentpp.org/mailman/listinfo/agentpp
> >
> >
>
>
>
===============================================
诺基亚铃声 http://sms.tom.com/index2.php?inc=3&type=24
摩托罗拉铃声 http://sms.tom.com/index2.php?inc=3&type=26
西门子铃声 http://sms.tom.com/index2.php?inc=3&type=25
诺基亚小图 http://sms.tom.com/index2.php?inc=2
诺基亚大图 http://sms.tom.com/index2.php?inc=2&type=3740
西门子图片 http://sms.tom.com/index2.php?inc=2&type=30
手机点歌 http://sms.tom.com/index2.php?inc=song
===============================================
More information about the AGENTPP
mailing list