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

Arash Daneshmand arash.outline at gmail.com
Fri Nov 2 10:57:26 PDT 2018


Dear Junxiao Shi,

what are the required includes for these functions?
I got no setParameter() and  getParameters() for my created interest.

Thanks,
Arash

On Fri, Nov 2, 2018 at 4:09 PM Junxiao Shi <shijunxiao at email.arizona.edu>
wrote:

> 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/72a3cb2e/attachment.html>


More information about the ndnSIM mailing list