[ndnSIM] How to change packet to ndn::Data or ndn::Interest?

Spyridon (Spyros) Mastorakis spiros.mastorakis at gmail.com
Wed Jul 1 09:37:37 PDT 2015


Hello,

you can use the FromPacket methods:

https://github.com/NDN-Routing/ndnSIM/blob/master/model/ndn-ns3.cpp#L45-L49

Example:

https://github.com/NDN-Routing/ndnSIM/blob/a5587caa724bbe0db85c8511649faf9e06f97754/model/ndn-net-device-face.cpp#L126

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




> On Jul 1, 2015, at 2:46 AM, 최원준 <wonjunchoi001 at gmail.com> wrote:
> 
> I wish someone can answer to my question.
> 
> Wonjun, Choi
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim





More information about the ndnSIM mailing list