[ndnSIM] afterReceiveInterest in Strategy subclass
shijunxiao at email.arizona.edu
Sat May 13 10:33:41 PDT 2017
The truth is in source code. Any documentation is secondary: they could be
outdated, or they could reflect a planned feature/change which is not yet
In this instance, NFD devguide is correct. Strategy's *after receive
Interest* trigger is invoked only if the Interest is not satisfied by
NFD's *Forwarder::onIncomingInterest* function is invoked for every
incoming Interest. That function, at the end, performs a CS lookup, and
branches out to two cases: CS hit or CS miss.
On May 12, 2017 11:01 PM, "John Baugh" <jpbaugh at umich.edu> wrote:
Greetings ndnSIM folks,
I have been working with a Strategy subclass in order to take advantage of
the afterReceiveInterest method. The documentation on ndnSIM's website
seems to imply that *any time *an Interest arrives at a node, that
afterReceiveInterest is called.
However, the *NFD Documentation *seems to imply that this method is only
called *if the Content Store cannot satisfy the Interest.* In other words,
if the Interest is satisfied by the CS, this method will not be invoked.
1. Can someone tell me which of these is true?
2. Is there any method in any class that is invoked *ANY TIME *an Interest
arrives (whether or not the CS can satisfy it or for any other reason)?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM