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

Adhy Satya adhysatya820 at gmail.com
Thu Jul 20 19:54:19 PDT 2017


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
and this
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 (
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20170720/9dc7c91b/attachment.html>

More information about the Ndn-interest mailing list