<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Arash,<div class=""><br class=""></div><div class="">we have a number of simulation examples and applications on the ndnSIM website:</div><div class=""><br class=""></div><div class=""><a href="http://ndnsim.net/current/" class="">http://ndnsim.net/current/</a></div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div 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 Nov 3, 2018, at 1:33 AM, Arash Daneshmand <<a href="mailto:arash.outline@gmail.com" class="">arash.outline@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hello Again,</div><div class=""><br class=""></div><div class="">What I'm trying to do is create a custom interest with a prefix in the consumer, convert it to a packet, send it through a socket connection to the producer.</div><div class="">when the producer received the custom interest packet, extract it's prefix and check if the requested data is available , and then create a custom data , convert it to a packet and send it back to the consumer through a socket connection.<br class=""></div><div class=""><br class=""></div><div class="">
some examples or pieces of c++ codes to do such a thing would help me a lot.<br class=""></div><div class=""><br class=""></div><div class="">Is it possible to create such a scenario and do the whole thing manually? <br class=""></div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Arash<br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Fri, Nov 2, 2018 at 9:27 PM Arash Daneshmand <<a href="mailto:arash.outline@gmail.com" class="">arash.outline@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div dir="ltr" class="">Dear Junxiao Shi,</div><div dir="ltr" class=""><br class=""></div><div class="">what are the required includes for these functions?</div><div class="">I got no 
setParameter() and 
getParameters() for my created interest.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Arash<br class="">



</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Fri, Nov 2, 2018 at 4:09 PM Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" target="_blank" class="">shijunxiao@email.arizona.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><div dir="auto" class="">Hi Arash</div></div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Interest interest("/A"); // create Interest</div><div dir="auto" class="">interest.setParameters("C0C1C2C3"_block); // add payload</div><div dir="auto" class="">face.expressInterest(interest, onData, onNack, onTimeout); // send Interest</div><div dir="auto" class="">std::cout << interest.getParameters(); // examine payload</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Yours, Junxiao</div><div class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Fri, Nov 2, 2018 at 08:25 Arash Daneshmand <<a href="mailto:arash.outline@gmail.com" target="_blank" class="">arash.outline@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class="">Greetings,</div><div class=""><br class=""></div><div class="">I want to create a custom interest packet with my custom payload and send it through the consumer. I want to be able to examine the interest and response packets in the consumer and producer. <br class=""></div><div class="">I was hoping you could help me with some examples or pieces of c++ codes.</div><div class=""><br class=""></div><div class="">Thank You In Advance,</div><div class="">Arash Daneshmand<br class=""></div></div></blockquote></div></div></blockquote></div></blockquote></div><br class=""></div></blockquote></div><br class=""></div></body></html>