[Ndn-interest] NDNLPv2: create lp::packet and add content
lixia at cs.ucla.edu
Fri Jul 21 16:40:54 PDT 2017
please send all implementation related questions to nfd-dev mailing list (copied it on this reply)
> On Jul 20, 2017, at 7:54 PM, Adhy Satya <adhysatya820 at gmail.com> wrote:
> 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?
> I saw older posts (this <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2017-February/002260.html>, and this <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2016-February/001536.html>), but this methods are for CachePolicy and NextHopFaceIdTag. I want to send a string "Hello" (type Name actually).
> In line with what Ashlesh did, I added the following lines at Consumer (https://github.com/named-data/ndn-cxx/blob/master/examples/consumer.cpp#L42 <https://github.com/named-data/ndn-cxx/blob/master/examples/consumer.cpp#L42>), but need help with the commented lines.
> ndn::lp::Packet lpPacket;
> // add string ("Hello") to lpPacket
> // send lpPacket
> And then I'll need to read that packet in the producer.
> Thanks again for your help.
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ndn-interest