[ndnSIM] Custom Apps (Examples!)

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Tue Feb 27 20:12:06 PST 2018

Hi Hammad,

please take a look at this thread, the solution is described there:

http://www.lists.cs.ucla.edu/pipermail/ndnsim/2018-January/004401.html <http://www.lists.cs.ucla.edu/pipermail/ndnsim/2018-January/004401.html>


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

> On Feb 27, 2018, at 2:08 AM, Hammad Zafar <hammad.zafar at y7mail.com> wrote:
> Hi community,
> I've been facing this issue that whenever I try to use custom applications; whether it's a forwarding strategy, a customer application or any other custom application (that are given as examples in ndnSIM); outside their example file, it doesn't work. Always a compiling or linking issue.
> For example, I wanted to have custom application 'Hijacker' in my scenario's code file (.cpp), did it using AppHelper. The code file compiles fine and build is finished successfully but my scenario doesn't run and it shows an error:
> assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: Hijacker not found", file=../src/core/model/type-id.cc, line=755
> terminate called without an active exception
> Note that the scenario in ndn-custom-apps.cpp runs fine and doesn't give any error but when I use custom apps in another file, there's that issue again. Same thing happens when I use 'RandomLoadBalancer' strategy outside ndn-load-balancer.cpp file (different error though).
> What am I doing wrong? Help would be much appreciated.
> Regards,
> Hammad

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180227/5b835a20/attachment.html>

More information about the ndnSIM mailing list