[ndnSIM] Running ndn-ping scenario

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Mon Mar 19 08:50:51 PDT 2018


Hi,

I will try to update the ndn ping app to the latest API soon.

In the meantime, there are a couple of other apps you can take a look at:

ChronoSync: https://github.com/spirosmastorakis/scenario-ChronoSync <https://github.com/spirosmastorakis/scenario-ChronoSync>

nTorrent (this one is a WIP by 2 masters students at UCLA): https://github.com/AkshayRaman/scenario-ntorrent <https://github.com/AkshayRaman/scenario-ntorrent>

Thanks,

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

> On Mar 18, 2018, at 10:27 AM, chavoosh ghasemi <chavoosh.ghasemi.off at gmail.com> wrote:
> 
> Junxiao,
> 
> I'm trying to run ndn-ping scenario (https://github.com/named-data-ndnSIM/scenario-ndn-ping <https://github.com/named-data-ndnSIM/scenario-ndn-ping>) without changing anything in the source code. I just clone the scenario and tried to compile it and faced the mentioned error. So, do you think I cannot run this scenario as it is? Is there any real application scenario that can run with the current API?
> 
> Bests,
> - Chavoosh
> 
> On Sat, Mar 17, 2018 at 4:08 PM, Junxiao Shi <shijunxiao at email.arizona.edu <mailto:shijunxiao at email.arizona.edu>> wrote:
> Hi Chavoosh
> 
> ../ndn-tools/tools/ping/client/ping.cpp:39:17: error: ‘random’ is not a class, namespace, or enumeration
>      m_nextSeq = random::generateWord64();
>                  ^~~~~~
> Missing include <ndn-cxx/util/random.hpp>.
> 
> ../ndn-tools/tools/ping/client/ping.cpp: In member function ‘void ndn::ping::client::Ping::performPing()’:
> ../ndn-tools/tools/ping/client/ping.cpp:68:69: error: no matching function for call to ‘ndn::Face::expressInterest(ndn::Interest&, std::_Bind_helper<false, void (ndn::ping::client::Ping::*)(const ndn::Interest&, ndn::Data&, long unsigned int, const boost::chrono::time_point<ndn::time::steady_clock>&), ndn::ping::client::Ping*, const std::_Placeholder<1>&, const std::_Placeholder<2>&, long unsigned int&, boost::chrono::time_point<ndn::time::steady_clock, boost::chrono::duration<long int, boost::ratio<1l, 1000000000l> > > >::type, std::_Bind_helper<false, void (ndn::ping::client::Ping::*)(const ndn::Interest&, long unsigned int), ndn::ping::client::Ping*, const std::_Placeholder<1>&, long unsigned int&>::type)’
>                           bind(&Ping::onTimeout, this, _1, m_nextSeq));
>                                                                      ^
> In file included from /home/vagrant/ns-dev/scenario-ndn-ping/ndn-tools/core/common.hpp:61:0,
>                  from ../ndn-tools/tools/ping/client/ping.hpp:26,
>                  from ../ndn-tools/tools/ping/client/ping.cpp:23:
> /home/vagrant/ns-dev/ns-3/build/ns3/ndnSIM/ndn-cxx/face.hpp:229:3: note: candidate: const ndn::PendingInterestId* ndn::Face::expressInterest(const ndn::Interest&, const DataCallback&, const NackCallback&, const TimeoutCallback&)
>    expressInterest(const Interest& interest,
>    ^~~~~~~~~~~~~~~
> /home/vagrant/ns-dev/ns-3/build/ns3/ndnSIM/ndn-cxx/face.hpp:229:3: note:   candidate expects 4 arguments, 3 provided
> You are using an expressInterest overload that was deprecated and then removed. Rewrite the code with the current API.
> 
> Yours, Junxiao
> 
> 
> 
> -- 
> Chavoosh Ghasemi
> 
> Ph.D. Student in Computer Networking 
> University of Arizona - Computer Science Department
> Address: Gould-Simpson 721B, 1040 E. 4th Street,
>                  Tucson, AZ 85721
> 
> "The quieter you become, the more you can hear"
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180319/25587a0e/attachment.html>


More information about the ndnSIM mailing list