<div dir="ltr">Dear Spyros, thank you. <div>Your suggestions helped me much.<br><div><br></div><div><div>I'm creating a custom strategy and i see if node is producer this way:</div><div><br></div><div>in afterReceiveInterest() method.</div><div><br></div><div>Face& outFace = it->getFace();<br></div><div>if (outFace.getLocalUri().getScheme() == "appFace") {</div><div>     // is producer node.</div><div>}</div><div><br></div><div>I dont know if this way is more appropriate, but it works.</div></div><div><br></div><div><br></div><div>Best regards.</div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-10-12 20:19 GMT-03:00 Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>please forward your emails to the list, so that they are visible to all the subscribers.</div><div><br></div><div>This decision is related to 2 factors:</div><div><br></div><div>1) The producer application adds a route with cost 0 for the served prefix towards its local face:</div><div><br></div><div><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/master/apps/ndn-producer.cpp#L82" target="_blank">https://github.com/named-data-<wbr>ndnSIM/ndnSIM/blob/master/<wbr>apps/ndn-producer.cpp#L82</a></div><div><br></div><div>2) Once this route is added, the resulting outgoing face of a FIB lookup will be the one registered by the app. Interests with the registered prefix will be forwarded through the app face:</div><div><br></div><div><a href="https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.5.0-30-g934f505-ndnSIM/daemon/fw/forwarder.cpp#L258" target="_blank">https://github.com/named-data-<wbr>ndnSIM/NFD/blob/NFD-0.5.0-30-<wbr>g934f505-ndnSIM/daemon/fw/<wbr>forwarder.cpp#L258</a></div><div><br></div><div>Hope that this helps,</div><div><span class=""><br><div>
<div><div><div><span style="float:none;display:inline!important">Spyridon (Spyros) Mastorakis</span><br><span style="float:none;display:inline!important">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~<wbr>mastorakis/</a><br><span style="float:none;display:inline!important">Internet Research Laboratory</span><br><span style="float:none;display:inline!important">Computer Science Department</span><br><span style="float:none;display:inline!important">UCLA</span></div></div></div>
</div>
<br></span><div><div class="h5"><div><blockquote type="cite"><div>On Oct 12, 2017, at 11:28 AM, Renato Cavalcante <<a href="mailto:renato.frca@gmail.com" target="_blank">renato.frca@gmail.com</a>> wrote:</div><br class="m_4251667934055412368Apple-interchange-newline"><div><div dir="ltr">Dear Spyros, <div>thank you very much for replying.<br><div><br></div><div>This decision happen in the forwarder class? If yes, in which member function (method)?<br></div><div><br></div><div>Thanks,</div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-10-12 13:47 GMT-03:00 Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>if a producer application has announced the Interest prefix, then the Interest will be forwarded to the application. If not, it will be further forwarded based on FIB LPM.</div><div><br></div><div>Thanks,</div><div><br><div>
<div><div><div><span style="float:none;display:inline!important">Spyridon (Spyros) Mastorakis</span><br><span style="float:none;display:inline!important">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~m<wbr>astorakis/</a><br><span style="float:none;display:inline!important">Internet Research Laboratory</span><br><span style="float:none;display:inline!important">Computer Science Department</span><br><span style="float:none;display:inline!important">UCLA</span></div><div><br></div></div></div></div><div><div class="m_4251667934055412368h5"><div><blockquote type="cite"><div>On Oct 11, 2017, at 9:38 PM, Renato Cavalcante <<a href="mailto:renato.frca@gmail.com" target="_blank">renato.frca@gmail.com</a>> wrote:</div><br class="m_4251667934055412368m_-7820509961315095436Apple-interchange-newline"><div><div dir="ltr">Hi All,<div><br></div><div><div>Where exactly the incoming interest is pass for application and don't is send for out face, in producer node?</div></div><div><br></div><div><br></div><div>Thanks,</div></div></div></blockquote></div><br></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_4251667934055412368gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font><span style="font-size:12.8px">Renato Araújo</span><br></font></div><div><font><span style="font-size:12.8px">Computer Science Department</span><br style="font-size:12.8px"><span style="font-size:12.8px">UFBA -- Brazil</span></font><br><div><br><br></div></div></div></div></div></div></div>
</div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font color="#000000"><span style="font-size:12.8px">Renato Araújo</span><br></font></div><div><font color="#000000"><span style="font-size:12.8px">Computer Science Department</span><br style="font-size:12.8px"><span style="font-size:12.8px">UFBA -- Brazil</span></font><br><div><br><br></div></div></div></div></div></div></div>
</div>