<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Not only all Interests <i>arrive to</i> a node, but also local Interests will go to startProcessInterest. You see all of management protocol in NFD relies on sending and processing local Interests.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">2- Using NFD logs(e.g. Forwarder logs) can help you find out the <i>when</i> startProccessInterest is called(Note NFD_LOG_DEBUG in the method). At least that's the way I do it and it works for what I need.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Sabet<br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="rtl"><font face="tahoma, sans-serif">خندان باشید</font></div><div dir="rtl"><font face="tahoma, sans-serif">با تشکر</font></div></div></div></div>
<br><div class="gmail_quote">On Tue, Jun 13, 2017 at 12:59 PM, John Baugh <span dir="ltr"><<a href="mailto:jpbaugh@umich.edu" target="_blank">jpbaugh@umich.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Greetings all,<div><br></div><div>I resolved many other issues, and now I'm come to a bit of a concern regarding the forwarder class.</div><div><br></div><div>I have been recompiling the Forwarder class, with some modifications to onIncomingInterest (actually, it just calls another method I wrote, and that method calls the method of a shared object called PopMan->recordInterestStats(<wbr>inFace, interest))</div><div><br></div><div>So here's what I originally understood:</div><div><br></div><div><ul><li>If an interest arrives at a <b>node</b>, the Forwarder's onIncomingInterest (I think indirectly through startProcessInterest, at least) is called automatically <b>every </b>time any interest arrives</li></ul><div>The behavior I'm observing is:</div></div><div><ul><li>If an interest is about to be <b>forwarded</b>, then Forwarder's onIncomingInterest is called</li></ul><div>Now, I realize the name "Forwarder" might have been a clue...  but I was under the impression that this class sensed <b>all incoming interests to the node</b>, not just ones that are to be forwarded.</div></div><div><br></div><div>1.  Please confirm the behavior of this method</div><div><br></div><div>2.  If I'm right, <b>is there any way </b>to detect when an interest arrives at a node (not when the interest is to be forwarded, or cached, etc. - but EVERY TIME an interest arrives at a particular node.</div><div><br></div><div>I had previously spent several weeks before working with the Strategy class, thinking afterReceiveInterest was called every time an interest was received at a node...  it turned out I was wrong.</div><div><br></div><div>I was told (I think?) that I needed to override Forwarder's methods instead.  So I did.</div><div><br></div><div>I've learned a lot, don't get me wrong.  I just am not getting the behavior I expect, and I'm starting to become extremely concerned that I've gone down the wrong path... again.</div><div><br></div><div>Thoughts?</div><div><br></div><div>Thanks,</div><div><br></div><div>John</div></div>
<br>______________________________<wbr>_________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank" rel="noreferrer">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndnsim</a><br>
<br></blockquote></div><br></div>