[ndnSIM] How to give the strategy access to Unsolicited data ??

lahmer ilyas ilyaslahmer93 at gmail.com
Sun May 14 02:46:34 PDT 2017


Hi, I'm trying to send Unsolicited Data but I want
beforeSatisfyInterest to be called. I tried to modify the forwarder
class by adding;

std::shared_ptr<Interest> i = std::make_shared<Interest>();
shared_ptr<pit::Entry> pitEn = make_shared<pit::Entry>(*i);

if (pitMatches.begin() == pitMatches.end()) {
  m_strategyChoice.findEffectiveStrategy(Name("/prefix")).beforeSatisfyInterest(pitEn,inFace,data);
  this->onDataUnsolicited(inFace, data);
  return;
}

But the program is crashing at
m_strategyChoice.findEffectiveStrategy(Name("/prefix")).beforeSatisfyInterest(pitEn,inFace,data);


More information about the ndnSIM mailing list