[ndnSIM] Fwd: How to get an application installed on a node?

Hu, Xiaoyan xhbreezehu at gmail.com
Wed Aug 2 19:31:44 PDT 2017


Hi Junxiao,

Thank you so much for your explanation and pointers.
I just figured it out and so happy.

Best Regards,
Xiaoyan

On Thu, Aug 3, 2017 at 5:24 AM, Junxiao Shi <shijunxiao at email.arizona.edu>
wrote:

> Hi Xiaoyan
>
> I don't know specific ndnSIM interfaces, but I'll answer from general ns-3
> point of view.
>
> I found "Ptr<ContentStore> cs = m_nodePtr->GetObject<ContentStore> ();"
>> as an example
>>
> This works because a node can have only one ContentStore.
>
>
>> and tried "Ptr<Producer> producer = m_nodePtr->GetObject<Producer> ();".
>>
>> But producer turned out to be null.
>>
>> This will not work because a node can potentially have multiple Producer
> instances, so that Producer should not be aggregated into the Node, but is
> added to some list.
> Likewise, you can't use GetObject to obtain a network interface or an
> IP-based application. They are available through ns-3 attribute system and
> through object names.
>
> Related reading: ns-3 Manual
> <https://www.nsnam.org/docs/release/3.26/manual/html/index.html>, "object
> model", "configuration and attributes", and "object names" sections.
>
> Yours, Junxiao
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170803/49da8877/attachment-0001.html>


More information about the ndnSIM mailing list