<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">It's mostly your call how to do it. As an example, take a look at </div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><a href="http://ndnsim.net/2.3/doxygen/classns3_1_1ndn_1_1Consumer.html">http://ndnsim.net/2.3/doxygen/classns3_1_1ndn_1_1Consumer.html</a></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">There is a OnData method that is called every time new Data arrives. You may schedule your application sending next Interest there. As Alex pointed out, you may update existing consumer apps(ConsumerCbr, ConsumerBatch, etc) or write a new one familiar to existing ones but having your own OnData method implemented, which behaves as you want. Indeed it should be simple. Just take a look at existing apps. I'm sure you will find what you're looking for.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Sabet<br></div><div class="gmail_extra"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="rtl"><font face="tahoma, sans-serif"><br></font></div></div></div></div>
<br><div class="gmail_quote">On Mon, Dec 19, 2016 at 4:36 AM, 任沛 <span dir="ltr"><<a href="mailto:renpei.bupt@qq.com" target="_blank">renpei.bupt@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I am new to ndnSIM,how can i implement this scheme? I'm really appreciate if you can give me some tips!</div><div><br></div><div><br></div><div style="font-size:12px;font-family:Arial Narrow;padding:2px 0 2px 0">------------------ 原始邮件 ------<wbr>------------</div><div style="font-size:12px;background:#efefef;padding:8px"><div><b>发件人:</b> "Alex Afanasyev"<<a href="mailto:aa@cs.ucla.edu" target="_blank">aa@cs.ucla.edu</a>>; </div><div><b>发送时间:</b> 2016年12月19日(星期一) 上午6:26</div><div><b>收件人:</b> "任沛"<<a href="mailto:renpei.bupt@qq.com" target="_blank">renpei.bupt@qq.com</a>>; </div><div><b>抄送:</b> "ndnsim"<<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.<wbr>edu</a>>; </div><div><b>主题:</b> Re: [ndnSIM] consumer app</div></div><div class="HOEnZb"><div class="h5"><div><br></div>You either need to update existing consumer app or write a new one. Based on what you describing, it should be very simple to do.<br><br>--<br>Alex<br><br>> On Dec 17, 2016, at 11:03 PM, 任沛 <<a href="mailto:renpei.bupt@qq.com" target="_blank">renpei.bupt@qq.com</a>> wrote:<br>> <br>> Hi,<br>>   how can i realize a consumer APP that after client receive the data for the previous interest, than client can send the next interest to the net, rather than send interest depend on sending rate.<br>>   i.e. after client send a interest, no matter how long client have to wait for the correspond data, it can not send next interest until receive the data.<br>> thanks!</div></div><br>______________________________<wbr>_________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank" rel="noreferrer">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndnsim</a><br>
<br></blockquote></div><br></div></div>