[Ndn-interest] NDNLPv2: create lp::packet and add content

Lixia Zhang 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:
> 
> Hi,
> 
> 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
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20170721/ed45f635/attachment.html>


More information about the Ndn-interest mailing list