[ndnSIM] Running ndn-ping scenario

Junxiao Shi shijunxiao at email.arizona.edu
Sat Mar 17 16:08:19 PDT 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180317/ced6ef6d/attachment-0001.html>


More information about the ndnSIM mailing list