[ndnSIM] Holding Interest
babaeim at clarkson.edu
Tue Jul 11 11:16:03 PDT 2017
Thank you for your explanation. Do you have some example codes of this setup?
> On Jul 11, 2017, at 2:03 PM, Junxiao Shi <shijunxiao at email.arizona.edu> wrote:
> Hi Marzieh
> The strategy can set a timer via nfd::scheduler to callback the strategy after a period of time, and send the Interest in the callback.
> The timer should be stored in the PIT entry's StrategyInfo as a ScopedEventId, and should be cancelled if the Interest is satisfied before it was sent (it's possible, because "unsolicited" Data is not treated as unsolicited if PIT entry is present, even before the Interest is sent). Otherwise, in case strategy is changed at runtime, when the timer fires it would attempt to execute the callback which now points to a destructed Strategy instance, and thus cause a crash.
> Yours, Junxiao
> On Tue, Jul 11, 2017 at 10:21 Marzieh Babaeianjelodar <babaeim at clarkson.edu <mailto:babaeim at clarkson.edu>> wrote:
> Hi All,
> Is there a way to hold an interest for a certain amount of time in the strategy file and send it later?
> Best Regards,
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu <mailto:ndnSIM at lists.cs.ucla.edu>
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim <http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM