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

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Sat Nov 3 08:43:21 PDT 2018


Arash,

we have a number of simulation examples and applications on the ndnSIM website:

http://ndnsim.net/current/

Thanks,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA

> On Nov 3, 2018, at 1:33 AM, Arash Daneshmand <arash.outline at gmail.com> wrote:
> 
> 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? 
> 
> Thanks,
> Arash
> 
> On Fri, Nov 2, 2018 at 9:27 PM Arash Daneshmand <arash.outline at gmail.com <mailto:arash.outline at gmail.com>> wrote:
> 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 <mailto: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 <mailto: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/1dd1db7a/attachment.html>


More information about the ndnSIM mailing list