<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></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="">the Consumer class is supposed to be used as the base class for derived consumer classes that actually control the Interest/Data sending rate. It is not supposed to be used directly in simulation scenarios.</div><div class=""><br class=""></div><div class="">You can create your own consumer class that derives from the base consumer class and implement your own logic.</div><div class=""><br class=""></div><div class="">Hope that 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></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Dec 21, 2016, at 8:38 AM, MD TAUSHIF <<a href="mailto:md.taushif1614@gmail.com" class="">md.taushif1614@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div style="font-size:12.8px" class="">Hi all,</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">I am new to ndnsim. I was working with the example <b class="">ndn-tree-tracers.cpp</b>. While running the simulation example (ndn-tree-tracers.cpp) I got some error which I am unable to resolve. I used different Consumer application instead of <b class="">ConsumerCbr</b> which resulted in following error.</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">/*</div><div style="font-size:12.8px" class="">Waf: Entering directory `/home/aa/ndnsim/ns-3/build'</div><div style="font-size:12.8px" class="">[1483/2861] Compiling src/ndnSIM/examples/new.cpp</div><div style="font-size:12.8px" class="">[2791/2861] Linking build/src/ndnSIM/examples/ns3-<wbr class="">dev-new-debug</div><div style="font-size:12.8px" class="">Waf: Leaving directory `/home/aa/ndnsim/ns-3/build'</div><div style="font-size:12.8px" class="">Build commands will be stored in build/compile_commands.json</div><div style="font-size:12.8px" class="">'build' finished successfully (10.496s)</div><div style="font-size:12.8px" class="">msg="Requested constructor for ns3::ndn::Consumer but it does not have one.", file=../src/core/model/type-<wbr class=""><a href="http://id.cc" class="">id.cc</a>, line=547</div><div style="font-size:12.8px" class="">terminate called without an active exception</div><div style="font-size:12.8px" class="">Command ['/home/aa/ndnsim/ns-3/build/<wbr class="">src/ndnSIM/examples/ns3-dev-<wbr class="">new-debug'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").</div><div style="font-size:12.8px" class="">*/</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">I replaced following line</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class=""> ndn::AppHelper consumerHelper("ns3::ndn::<wbr class="">ConsumerCbr");</div><div style="font-size:12.8px" class="">With </div><div style="font-size:12.8px" class="">ndn::AppHelper consumerHelper("ns3::ndn::<wbr class="">Consumer");</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">Please guide me about how I can use the <b class="">ndn-conumer.cpp</b> as I wanted to make changes in Interest Packet and its following Data packet for it using this ndn-conumer.cpp?</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">Thanks & Regards,</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">   MD Taushif</div></div></div></blockquote></div><br class=""></div></body></html>