[ndnSIM] Get node info in forwarding strategy
yourong
rong.you.sjtu at foxmail.com
Tue May 27 01:53:14 PDT 2014
Hi Alex,
That would be very helpful, tks!
Best regard!
------------------
Rong You
Shanghai Jiao Tong University
------------------ Original ------------------
From: "Alex Afanasyev";<alexander.afanasyev at ucla.edu>;
Date: Mon, May 26, 2014 09:01 PM
To: "yourong"<rong.you.sjtu at foxmail.com>;
Cc: "ndnsim"<ndnsim at lists.cs.ucla.edu>;
Subject: Re: [ndnSIM] Get node info in forwarding strategy
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/20140527/f5dd5003/attachment.html>
More information about the ndnSIM
mailing list