[ndnSIM] Get or fine Node name at fowarder.cpp during simulation

Muhammad Hosain Abdollahi Sabet mhasabet at gmail.com
Sat Dec 17 00:25:44 PST 2016


If you give *name *to nodes, through AnnotatedTopologyReader,
scenarioHelper or otherwise, you can use the helper with the signature you
mentioned. If you take a look at its implementation
<http://ndnsim.net/2.3/doxygen/ndn-fib-helper_8cpp_source.html#l00117> I
guess you will find a clue how to use it.


On Sat, Dec 17, 2016 at 1:28 AM, Shahram Yousefi <shahram2024 at gmail.com>

> Hi.
> I like to add new FIB entry at *fowarder.cpp*, "*onIncomingData*" Method
> during simulation.
> I know that I can use "*FibHelper::AddRoute*", for Example :
> *AddRoute (const std::string &nodeName, const Name &prefix, uint32_t
> faceId, int32_t metric)*
> For  "prefix"  I can use    *data.getName()*.
> For  "faceId"  I can use   * inFace.getId()*.
> For  "metric"  I can use    *0 or any other value*.
> But I don’t know what should I Use for "*nodeName*".
> How could I get or fine Node name at fowarder.cpp during simulation?
> Best regards.
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161217/fd9e6de1/attachment.html>

More information about the ndnSIM mailing list