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

John Baugh jpbaugh at umich.edu
Sun May 14 05:39:49 PDT 2017


Test and see if findEffectiveStrategy is nullptr.

On May 14, 2017 5:46 AM, "lahmer ilyas" <ilyaslahmer93 at gmail.com> wrote:

> 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);
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170514/c1ce2566/attachment.html>


More information about the ndnSIM mailing list