[ndnSIM] How to access Ptr<Node> in forwarder.cpp ?

Alex Afanasyev aa at CS.UCLA.EDU
Sun Jun 26 18:53:00 PDT 2016


Just combine Simulator::GetContext with NodeList:

    ns3::Ptr<ns3::Node> node = ns3::NodeList::GetNode(ns3::Simulator::GetContext());

---
Alex

> On Jun 15, 2016, at 6:05 AM, Ali Marandi <marandi.ali62 at gmail.com> wrote:
> 
> Hi everyone !
> 
> How to access Ptr<Node> in forwarder.cpp ? (I know about Simulator::GetContext(). I need access to Ptr<Node>)
> 
> Thanks,
> Ali
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160626/cdfd3cb7/attachment.bin>


More information about the ndnSIM mailing list