<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Dear Junxiao,</div><div class=""><br class=""></div><div class="">Thank you for your explanation. Do you have some example codes of this setup?</div><div class=""><br class=""></div><div class="">Best Regards,</div><div class="">Marzieh</div><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 11, 2017, at 2:03 PM, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" class="">shijunxiao@email.arizona.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div dir="auto" class="">Hi Marzieh</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">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.</div><div dir="auto" class="">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.</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Yours, Junxiao</div><br class=""><div class="gmail_quote"><div class="">On Tue, Jul 11, 2017 at 10:21 Marzieh Babaeianjelodar <<a href="mailto:babaeim@clarkson.edu" class="">babaeim@clarkson.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br class="">
<br class="">
Is there a way to hold an interest for a certain amount of time in the strategy file and send it later?<br class="">
<br class="">
Best Regards,<br class="">
Marzieh<br class="">
_______________________________________________<br class="">
ndnSIM mailing list<br class="">
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br class="">
</blockquote></div></div>
</div></blockquote></div><br class=""></body></html>