<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=""><div><blockquote type="cite" class=""><div class="">On Aug 8, 2018, at 3:28 AM, Ming <<a href="mailto:mingdeyou@126.com" class="">mingdeyou@126.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="line-height: 1.7; font-size: 14px; font-family: Arial;" class=""><div class="">Hello everyone,</div><div class=""> I have a few questions  that needs you help!</div><div class="">1.    How to modify the  contents of the Interest package before the node forwards the Interest?Or can Interest packet be modified?</div><div class="">ndnSIM 2.5 ‘s  API   uses  "const"  passing the Interest  pointer to each function.So I don't know how to do it.</div></div></div></blockquote><div><br class=""></div><div>There is a very good reason that all the methods in the forwarder class of NFD use const for Interests/Data packets. Because the forwarder is not supposed to change the packets at that point of the execution. I would suggest if you want to change Interests, create an application that could do that.</div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div style="line-height: 1.7; font-size: 14px; font-family: Arial;" class=""><div class="">2.    A node how to sending  information to its neighbors?   In what form should I send this information?    Which class or function should I use?</div></div></div></blockquote><div><br class=""></div><div>Make sure that all the node's neighbors run a producer app that has registered a specific prefix. The node should run a consumer app to send Interests for the registered prefix. Please take a look at the existing consumer and producer app implementation in ndnSIM.</div><br class=""></div><div>Hope that this helps,</div><div><br class=""></div><div><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=""><span class="" style="float: none; display: inline !important;"><br class=""></span></div></div></div><div class=""><br class=""></div></div><br class=""></div></body></html>