[Ndn-interest] 'Route' is not a member of 'ndn::nfd' ?

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Wed Jan 2 04:45:39 PST 2019


Hi,

I am not sure I fully understand what your goal is… You want to know the expiration time of a “route”? A naive reason could be that you do not include the necessary header files..

Moreover, ndnSIM by default uses a routing helper to install routes directly to the FIB of each node through the FibHelper:

https://github.com/named-data-ndnSIM/ndnSIM/blob/master/helper/ndn-global-routing-helper.cpp#L273-L274 <https://github.com/named-data-ndnSIM/ndnSIM/blob/master/helper/ndn-global-routing-helper.cpp#L273-L274>

You can use the git tag command to see the version of ndnSIM that you have downloaded.

Thanks,
 
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA

> On Jan 2, 2019, at 4:41 AM, gangliu <gangliu at bjtu.edu.cn> wrote:
> 
> Hi, NDN friends. 
>   Recently, I have tried to get the expiration period of a router in ndnSIM 2.3, but I got some errors as the following lines show.
> 
> ```
> ../src/ndnSIM/examples/ndn-kai.cpp: In member function ‘void ns3::print_pit::printStats()’:
> ../src/ndnSIM/examples/ndn-kai.cpp:60:60: error: ‘Route’ is not a member of ‘ndn::nfd’
>    auto expired_time = Names::Find<Node>("CR-0")->GetObject<::ndn::nfd::Route>()->getExpirationPeriod();
>  ```
> 
> I have checked the API docs at the ndnSIM 2.3 home page (http://ndnsim.net/2.3/doxygen/classndn_1_1nfd_1_1Route.html#a1032a5317eaa87513bf00d58d5e7cbb4 <http://ndnsim.net/2.3/doxygen/classndn_1_1nfd_1_1Route.html#a1032a5317eaa87513bf00d58d5e7cbb4>). It seems like that `Route` is a member of `ndn::nfd`. But why these errors happened? Anyone has some ideals or advises?  Thanks!!! 
> 
> BTW, I have installed ndnSIM 2.3 a few months ago, but I checked the VERSION file and got a "2.0.0" string. Is there any other ways to check the ndnSIM version?
> 
> 
> 	
> gangliu
> 
> gangliu at bjtu.edu.cn
>  <https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=1&name=gangliu&uid=gangliu%40bjtu.edu.cn&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png&items=%5B%22gangliu%40bjtu.edu.cn%22%5D&logoUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyeicon%2Fac1ca696788d4420bfd06967ba461a89.png>
> 签名由 网易邮箱大师 <https://mail.163.com/dashi/dlpro.html?from=mail81> 定制
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu <mailto:Ndn-interest at lists.cs.ucla.edu>
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest <http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20190102/58e03bb4/attachment.html>


More information about the Ndn-interest mailing list