[ndnSIM] Get node info in forwarding strategy

Alex Afanasyev alexander.afanasyev at ucla.edu
Mon May 26 06:01:22 PDT 2014


Hi Rong,

From inside the strategy, there is very simple method to obtain this information:

uint32_t nodeId = this->GetObject<Node>()->GetId();
Ptr<Pit> pit = this->GetObject<Pit>();
Ptr<Fib> fib = this->GetObject<Fib>();

---
Alex

On May 25, 2014, at 11:48 AM, yourong <rong.you.sjtu at foxmail.com> wrote:

> Hi Alex,
>     I want to customize a ndn-forwarding strategy. But I have some problems:
> How can I get the node info such as node id or else when implementing the forwarding
> strategy?(ie. How can i know who is running the forwarding strategy now, and then get 
> the PIT and FIB on the such nodes?)
>     Best regard!
>    
> 
> ------------------
> 
> Rong You 
> 
> 
> 
> Shanghai Jiao Tong University
> 
>  
> _______________________________________________
> 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/20140526/6d1b32da/attachment.html>


More information about the ndnSIM mailing list