[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
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>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM