[ndnSIM] Holding Interest

Junxiao Shi shijunxiao at email.arizona.edu
Tue Jul 11 11:03:45 PDT 2017

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>

> 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,
> Marzieh
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170711/c77be761/attachment.html>

More information about the ndnSIM mailing list