<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="">Hi,<div class=""><br class=""></div><div class="">you can extend the Producer application by adding an attribute counting the number of data packets your producer has sent out.</div><div class=""><br class=""></div><div class="">When the counter reaches 1000 packets, your producer stops responding to requests for data.</div><div class=""><br class=""></div><div class="">To implement that on the consumer side, you can use the sequence number (last name component of the Interest/Data packets exchanges between the already provided Consumer/Producer applications). When your consumer receives all the packets starting from sequence number 0 up to 999, it can stop sending out Interests.</div><div class=""><br class=""></div><div class="">Hope this helps,</div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><br class=""></div></div></div></div><div><blockquote type="cite" class=""><div class="">On Apr 7, 2017, at 10:20 PM, RuntongChen <<a href="mailto:runtongchen@csu.edu.cn" class="">runtongchen@csu.edu.cn</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Dear all,<div class="">Recently, I want to put a .txt document in Producer about the Simple scenario(<a href="http://ndnsim.net/2.3/examples.html" class="">http://ndnsim.net/2.3/examples.html</a>). And Consumer can get the .txt document from Producer. In other words, I want to set fixed number Data chunks in Producer(eg: 10000 chunks ). Then, Consumer can get these chunks by Interests. Of course, I noticed the ndn-tools in GtiHub(<a href="https://github.com/named-data/ndn-tools" class="">https://github.com/named-data/ndn-tools</a>). And the chunks is similar to my requires. But I have no idea how to implement it. Can you give me detail guidance? Thanks for your any advice.</div><div class="">Yours,Runtong</div></div></blockquote></div><br class=""></div></body></html>