[Nfd-dev] Hold an interest before send

Oleg Surnin o.surnin at innopolis.ru
Wed Aug 9 22:47:14 PDT 2017


Dear all,


I'm trying to add holding time in forwarding strategy, before send 
interest. That's how I'm trying to do this:

void
StormStrategy::afterReceiveInterest(const Face& inFace, const Interest& 
interest,
                                         const shared_ptr<pit::Entry>& 
pitEntry)
{

...

if (!wouldViolateScope(inFace, interest, outFace) &&
         canForwardToLegacy(*pitEntry, outFace)) {

Simulator::Schedule(Seconds(holdingTime),&StormStrategy::SendAfterDelay, 
pitEntry, outFace, interest);

     }

...

}

void

StormStrategy::SendAfterDelay(shared_ptr<pit::Entry>&pitEntry,const Face 
outFace,const Interest& interest)
{
  this->sendInterest(pitEntry, outFace, interest);
}

But have an errors:

//src/ndnSIM/NFD/daemon/fw/storm-strategy.hpp:49:3: error: candidate is: 
virtual void nfd::fw::StormStrategy::SendAfterDelay(const 
nfd::face::Face&, const ndn::Interest&, const 
std::shared_ptr<nfd::pit::Entry>&)//
//   SendAfterDelay(const Face& inFace, const Interest& interest, const 
shared_ptr<pit::Entry>& pitEntry);//
//   ^//
//../src/ndnSIM/NFD/daemon/fw/storm-strategy.cpp: In member function 
‘virtual void nfd::fw::StormStrategy::afterReceiveInterest(const 
nfd::face::Face&, const ndn::Interest&, const 
std::shared_ptr<nfd::pit::Entry>&)’://
//../src/ndnSIM/NFD/daemon/fw/storm-strategy.cpp:192:109: error: use of 
deleted function ‘nfd::face::Face::Face(const nfd::face::Face&)’//
//Simulator::Schedule(Seconds(holdingTime),&StormStrategy::SendAfterDelay, 
pitEntry, outFace, interest);/

Can someone help me?


Best regards,

Oleg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20170810/e447153b/attachment-0001.html>


More information about the Nfd-dev mailing list