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

Arash Daneshmand arash.outline at gmail.com
Sat Nov 3 01:33:24 PDT 2018

Hello Again,

What I'm trying to do is create a custom interest with a prefix in the
consumer, convert it to a packet, send it through a socket connection to
the producer.
when the producer received the custom interest packet, extract it's prefix
and check if the requested data is available , and then create a custom
data , convert it to a packet and send it back to the consumer through a
socket connection.

some examples or pieces of c++ codes to do such a thing would help me a lot.

Is it possible to create such a scenario and do the whole thing manually?


On Fri, Nov 2, 2018 at 9:27 PM Arash Daneshmand <arash.outline at gmail.com>

> 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/20181103/cc72ef91/attachment.html>

More information about the ndnSIM mailing list