<div dir="ltr"><span style="background-color:rgb(255,255,0)">Hi Spyros</span>, <div><br></div><div>My current application implementation does have its own face and thats the only 'face' it has. I am trying to understand the scenario, which Junxiao has addressed in this comment. Let me add more to what he has said. </div><div><br></div><div><span style="background-color:rgb(255,255,0)">Hi Junxiao</span>, </div><div><br></div><div>I agree and to clear the ambiguity, lets say, the "application" is the (class) which derives from "<span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(167,29,93);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre">class</span><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre"> My</span><span class="gmail-pl-en" style="box-sizing:border-box;color:rgb(121,93,163);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre">App</span><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre"> : </span><span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(167,29,93);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre">public</span><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre"> </span><span class="gmail-pl-en" style="box-sizing:border-box;color:rgb(121,93,163);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre">Application</span><span class="gmail-pl-en" style="box-sizing:border-box"><font color="#333333" style="font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre">" </font>or from<font color="#333333" style="font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre"> "</font></span><span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(167,29,93);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre">class</span><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre"> My</span><span class="gmail-pl-en" style="box-sizing:border-box;color:rgb(121,93,163);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre">App</span><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre"> : </span><span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(167,29,93);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre">public</span><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre"> </span><span class="gmail-pl-en" style="box-sizing:border-box;color:rgb(121,93,163);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre">App</span><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre">". </span>Now there are two nodes (node-A) and node (node-B) with 'MyApp' installed on it. So if I understood you correctly, its better using different faces from each 'module' interacting with other 'module' within same application or with another application altogether (its rather more important when they are using overlapping name prefixes). I guess we do not capture this aspect in the porting guide and perhaps worthwhile to mention it. Can you please check? </div><div><br></div><div>Thanks for your help!</div><div><br></div><div>/anil.</div><div> </div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 20, 2016 at 4:36 PM, Junxiao Shi <span dir="ltr"><<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>></span> wrote:<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"><div>Hi Anil</div><div><br></div><div>The technical difference between using one face or two faces is whether a piece of code would possibly receive packets from another piece of code.</div><div>Although ndn-cxx Face has an “internal FIB” and an “internal PIT”, it is not a forwarder and does not forward packets internally between different calling modules.</div><div><br></div><div>Suppose there are two application modules using ndn-cxx Face(s); note that I’m not specifying whether these two modules belong to the same “application” or not because the definition of “application” can be ambiguous. The first module is a producer which sets an InterestFilter for prefix /A, and the second module is a consumer that expresses an Interest for prefix /A/1.</div><div>If these two modules are using the same ndn-cxx Face, the Interest from the consumer module will not reach the producer module; if they use different ndn-cxx Faces, the Interest from the consumer module will reach the producer module.</div><div><br></div><div>Yours, Junxiao</div><div><br></div><br><div><blockquote type="cite"><span class=""><div>On Oct 20, 2016, at 4:26 PM, Spyridon (Spyros) Mastorakis <<a href="mailto:mastorakis@CS.UCLA.EDU" target="_blank">mastorakis@CS.UCLA.EDU</a>> wrote:</div><br class="m_1896530964600984919Apple-interchange-newline"></span><div><div style="word-wrap:break-word"><span class=""><div>my opinion is that each application should have its own face.</div><div><br></div></span><div><div><blockquote type="cite"><span class=""><div>On Oct 20, 2016, at 3:30 PM, Anil Jangam <<a href="mailto:anilj.mailing@gmail.com" target="_blank">anilj.mailing@gmail.com</a>> wrote:</div></span><span class=""><div><div dir="ltr"><div><span class="m_1896530964600984919gmail-n"><br></span></div><div><span class="m_1896530964600984919gmail-n">So as long the 'RealApp' is using this '</span><font>m_f</font>aceConsumer' to register the prefixes, it will be receiving all those Interests/Data packets. Do we have to explicitly create another face i.e. '<span class="m_1896530964600984919gmail-n">ndn</span><span class="m_1896530964600984919gmail-o" style="color:rgb(102,102,102)">::</span><span class="m_1896530964600984919gmail-n">Face</span><span> </span><span class="m_1896530964600984919gmail-n">m_faceProducer</span>' to sending out the Interest/Data traffic out from the application? </div></div></div></span></blockquote></div></div></div></div></blockquote></div><br></div></blockquote></div><br></div>