<div dir="ltr"><div><div><div><div>Hi Alex,<br><br></div>That is exactly what I want.<br></div>Really appreciate that.<br><br></div>Thanks,<br></div>Xiaoyan<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Apr 10, 2013 at 12:15 PM, Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Xiaoyan,<br>
<br>
Do you mean node id or name that has been associated using topology reader (=Names class)?<br>
<br>
You can always get a reference to node object from the forwarding strategy object by doing the following (assuming you're in the forwarding strategy method):<br>
<br>
Ptr<Node> node = this->GetObject<Node> ();<br>
<br>
>From here to get node id:<br>
node->GetId ();<br>
<br>
to get associated name:<br>
Names::FindName (node);<br>
<br>
---<br>
Alex<br>
<div><div class="h5"><br>
On Apr 9, 2013, at 8:53 PM, Xiao yan Hu <<a href="mailto:xhbreezehu@gmail.com">xhbreezehu@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> Do you guys know how applications can get the local node name?<br>
> Thanks in advance!<br>
><br>
> Best regards,<br>
> Xiaoyan<br>
</div></div>> _______________________________________________<br>
> ndnSIM mailing list<br>
> <a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div><br></div>