<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Anil,<div class=""><br class=""></div><div class="">my opinion is that each application should have its own face.</div><div class=""><br class=""></div><div class="">To this end, if you want to run 2 applications on a single node, each app should have its own face (2 app faces in total).</div><div class=""><br class=""></div><div class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><br class=""></div></div></div></div><div><blockquote type="cite" class=""><div class="">On Oct 20, 2016, at 3:30 PM, Anil Jangam <<a href="mailto:anilj.mailing@gmail.com" class="">anilj.mailing@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi, <div class=""><br class=""></div><div class="">I have a question related to the ndn::Face object. </div><div class=""><br class=""></div><div class="">I am referring to the sample code given in the porting guide. Look for the code under title: "How to simulate real applications using ndnSIM"</div><div class=""><a href="http://ndnsim.net/2.1/guide-to-simulate-real-apps.html" class="">http://ndnsim.net/2.1/guide-to-simulate-real-apps.html</a></div><div class=""><br class=""></div><div class="">Here the '<span style="color:rgb(14,132,181);font-weight:bold" class="">RealApp'</span> class defines a member variable <span class="gmail-n" style="">ndn</span><span class="gmail-o" style="color:rgb(102,102,102)">::</span><span class="gmail-n" style="">Face</span><span style="" class=""> </span><span class="gmail-n"><font class="">m_f</font>aceConsumer; So when this RealApp is *installed* on 'N' # of nodes in a simulation, each will have its own face.</span></div><div class=""><span class="gmail-n"><br class=""></span></div><div class=""><span class="gmail-n" style="">So as long the 'RealApp' is using this '</span><font class="">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="gmail-n" style="">ndn</span><span class="gmail-o" style="color:rgb(102,102,102)">::</span><span class="gmail-n" style="">Face</span><span style="" class=""> </span><span class="gmail-n" style="">m_faceProducer</span>' to sending out the Interest/Data traffic out from the application? </div><div class=""><br class=""></div><div class="">Though it is quite clear from the sample code, I am trying to understand that in my simulated application, do we just have to define a single 'ndn::Face' and it is good for simulation to run OR do we have to use second face the way it is give in this sample code? <br class=""></div><div class=""><br class=""></div><div class="">Please comment. </div><div class=""><br class=""></div><div class="">/anil.</div><div class=""><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>