[ndnSIM] Holding Interest
shijunxiao at email.arizona.edu
Tue Jul 11 11:03:45 PDT 2017
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.
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,
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM