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

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


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),
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