pdbarnes
unread,Aug 27, 2018, 12:47:07 AM8/27/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ns-3-users
ns-3 is implemented in C++. Most of the functionality is made available to Python, through a build process called “binding generation.” You may have seen this discussed on the list.
Examples and things in scratch ARE NOT available in Python. That’s why you’ll find some examples in both C++ and Python, as illustrations of how to use ns-3.
I’m guessing that myapp.h and myapp.cc are your code in scratch, perhaps from following the tutorial? You won’t be able to call that from Python, since bindings aren’t generated for things in scratch.
You *could* put the myapp.h/cc files instead/applications/model/, for example, then the binding process could make myapp accessible in Python. You’ll have to find the instructions on the ns-3 wiki to get that to work.
Peter