[ndnSIM] Create Custom Interest Packet, Send it & Examine It

Junxiao Shi shijunxiao at email.arizona.edu
Fri Nov 2 05:39:43 PDT 2018


Hi Arash

Interest interest("/A"); // create Interest
interest.setParameters("C0C1C2C3"_block); // add payload
face.expressInterest(interest, onData, onNack, onTimeout); // send Interest
std::cout << interest.getParameters(); // examine payload

Yours, Junxiao

On Fri, Nov 2, 2018 at 08:25 Arash Daneshmand <arash.outline at gmail.com>
wrote:

> Greetings,
>
> I want to create a custom interest packet with my custom payload and send
> it through the consumer. I want to be able to examine the interest and
> response packets in the consumer and producer.
> I was hoping you could help me with some examples or pieces of c++ codes.
>
> Thank You In Advance,
> Arash Daneshmand
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20181102/e8667c79/attachment.html>


More information about the ndnSIM mailing list