<div dir="auto">The error I got is that face class does not have a member receive().<div dir="auto">I do not know exactly how to send the cammand advertise/withdraw.</div><div dir="auto">Thank you a lot dear Alex for your attention. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mar 6, 2017 22:11, "Alex Afanasyev" <<a href="mailto:aa@cs.ucla.edu">aa@cs.ucla.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Dear Mahsa,<div><br></div><div>Can you give a bit more details on what errors you're getting? What exactly is not working when you trying to send the command?</div><div><br></div><div>--</div><div>Alex</div><div><br><div><blockquote type="cite"><div>On Mar 5, 2017, at 5:53 AM, Mahsa Aghajani <<a href="mailto:mahsa.aghajani@gmail.com" target="_blank">mahsa.aghajani@gmail.com</a>> wrote:</div><br class="m_-6200904518323209016Apple-interchange-newline"><div><div dir="ltr">Dear ndnSIM users<div><br></div><div>I want to update name prefix lists of routers during a simulation including adding/removing some name prefixes to/from a router. Should I use advertise or withdraw functions of NLSR for doing this?</div><div>If so, how can I use these functions in ndnSIM-NLSR? I have written this code in </div><div>ndn-nlsr-exec.cpp file, but I got some errors relating to sending interest from face :</div><div> </div><div><div>void</div><div>Nlsr::withdraw()</div><div>{</div><div> m_nlsr.<wbr>getPrefixUpdateProcessor().<wbr>updateProcessor.enable();</div><div><br></div><div> ndn::nfd::ControlParameters parameters;</div><div> parameters.setName("/prefix/<wbr>to/advertise/");</div><div><br></div><div> ndn::Name withdrawCommand("/localhost/<wbr>nlsr/prefix-update/withdraw");</div><div> withdrawCommand.append(<wbr>parameters.wireEncode());</div><div><br></div><div> shared_ptr<Interest> withdrawInterest = make_shared<Interest>(<wbr>withdrawCommand);</div><div> keyChain.signByIdentity(*<wbr>withdrawInterest, opIdentity);</div><div><br></div><div> face->receive(*<wbr>withdrawInterest);</div><div> face->processEvents(ndn::time:<wbr>:milliseconds(1));</div><div>}</div><div><br></div><div>Thanks and regards.</div><br><div class="m_-6200904518323209016gmail_signature"><div dir="ltr"><pre style="font-family:'lucida grande',verdana,arial,helvetica,sans-serif;margin-top:0px;margin-bottom:0px;padding:0px;word-wrap:break-word;white-space:pre-wrap"><font size="2">Mahsa Aghajani
M.Sc. Student
Department of Computer Engineering
Sharif University of Technology</font></pre></div></div>
</div></div>
______________________________<wbr>_________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndnsim</a><br></div></blockquote></div><br></div></div></blockquote></div></div>