[ndnSIM] How to access custom application (extended from ns3::ndn::app) from strategy

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Wed Jan 31 12:37:28 PST 2018


Hi,

> On Jan 31, 2018, at 4:46 AM, 中村真也 <nakamura at c.info.eng.osaka-cu.ac.jp> wrote:
> 
> Hi all.
> 
> I could access to forwarder from Application but...
> I want to access to the application from NFD strategy layer.
> I create one application (custom App) that inherits from ns3::ndn::app class.(also, ns3::ndn::application inherits from ns3::application).
> From NFD strategy layer, I want to access to one application method.
> 
> By giving forwarder itself nodeID, I tried to access to app. However it is failed.
> 	ns3::NodeList::GetNode(m_forwarder->m_nodeId)->GetApplication(0);
> 
> is there good way to access one application?

What do you mean that this failed?

You may have to use dynamic_cast to cast from an ns3::application to an ns3::ndn::application.

Thanks,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180131/b8eef06b/attachment.html>


More information about the ndnSIM mailing list