<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="">please send all implementation related questions to nfd-dev mailing list (copied it on this reply)<div class=""><br class=""></div><div class=""><br class=""><div class=""><div><blockquote type="cite" class=""><div class="">On Jul 20, 2017, at 7:54 PM, Adhy Satya <<a href="mailto:adhysatya820@gmail.com" class="">adhysatya820@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">Following the idea of exchanging information between the consumer and the producer, what's the difference between creating a ndn::lp::Packet or a ndn::TagHost? Which method should I use?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I saw older posts (<a href="http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2017-February/002260.html" class="">this</a>, and <a href="http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2016-February/001536.html" class="">this</a>), but this methods are for CachePolicy and NextHopFaceIdTag. I want to send a string "Hello" (type Name actually).</div><div class=""><br class=""></div><div class="">In line with what Ashlesh did, I added the following lines at Consumer (<a href="https://github.com/named-data/ndn-cxx/blob/master/examples/consumer.cpp#L42" class="">https://github.com/named-data/ndn-cxx/blob/master/examples/consumer.cpp#L42</a>), but need help with the commented lines.</div><div class=""><br class=""></div><div class="">    ndn::lp::Packet lpPacket;<br class=""></div><div class="">    // add string ("Hello") to lpPacket</div><div class="">    // send lpPacket</div><div class=""><br class=""></div><div class="">And then I'll need to read that packet in the producer.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks again for your help.</div><div class=""><br class=""></div><div class=""><br class=""></div></div>
_______________________________________________<br class="">Ndn-interest mailing list<br class=""><a href="mailto:Ndn-interest@lists.cs.ucla.edu" class="">Ndn-interest@lists.cs.ucla.edu</a><br class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest<br class=""></div></blockquote></div><br class=""></div></div></body></html>