<div dir="ltr"><div><div><div><div>Hi, <br><br></div>I'm stuck on the following problem:<br></div>I'm creating a new forwarding method and I need to get the node's object to make some decisions. My method seems much like this (multicast-strategy.cpp):<br><br>#include "multicast-strategy.hpp"<br>#include "algorithm.hpp"<br><br>namespace nfd {<br>namespace fw {<br><br>const Name MulticastStrategy::STRATEGY_NAME("ndn:/localhost/nfd/strategy/multicast/%FD%01");<br>NFD_REGISTER_STRATEGY(MulticastStrategy);<br><br>MulticastStrategy::MulticastStrategy(Forwarder& forwarder, const Name& name)<br>  : Strategy(forwarder, name)<br>{<br>}<br><br>void<br>MulticastStrategy::afterReceiveInterest(const Face& inFace, const Interest& interest,<br>                                        const shared_ptr<pit::Entry>& pitEntry)<br>{<br>  const fib::Entry& fibEntry = this->lookupFib(*pitEntry);<br>  const fib::NextHopList& nexthops = fibEntry.getNextHops();<br><br>  for (fib::NextHopList::const_iterator it = nexthops.begin(); it != nexthops.end(); ++it) {<br>    Face& outFace = it->getFace();<br>    if (!wouldViolateScope(inFace, interest, outFace) &&<br>        canForwardToLegacy(*pitEntry, outFace)) {<br>      this->sendInterest(pitEntry, outFace, interest);<br>    }<br>  }<br><br>  if (!hasPendingOutRecords(*pitEntry)) {<br>    this->rejectPendingInterest(pitEntry);<br>  }<br>}<br><br>} // namespace fw<br>} // namespace nfd<br><br></div>I need a way to return the node's object or the node's ID. <br><br></div>Thanks in advance.<br></div>