<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 20, 2016, at 2:15 PM, Thompson, Jeff <<a href="mailto:jefft0@remap.ucla.edu" class="">jefft0@remap.UCLA.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">NFD team, any suggestions on scope violation connecting to WebSocket locally?</div></div></blockquote><div><br class=""></div>this thread ought to go nfd-dev list</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class=""><div style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><span id="OLK_SRC_BODY_SECTION" style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div style="font-family: Calibri; font-size: 11pt; text-align: left; border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in; border-top-color: rgb(181, 196, 223);" class=""><span style="font-weight: bold;" class="">From:<span class="Apple-converted-space"> </span></span>"Ashlesh Gawande (agawande)" <<a href="mailto:agawande@memphis.edu" class="">agawande@memphis.edu</a>><br class=""><span style="font-weight: bold;" class="">Date:<span class="Apple-converted-space"> </span></span>Wednesday, July 20, 2016 at 14:11:00<br class=""><span style="font-weight: bold;" class="">To:<span class="Apple-converted-space"> </span></span>Jeff Thompson <<a href="mailto:jefft0@remap.ucla.edu" class="">jefft0@remap.ucla.edu</a>>, "El Mimouni, Omar Ilias (IntlAssoc)" <<a href="mailto:omarilias.elmimouni@nist.gov" class="">omarilias.elmimouni@nist.gov</a>>, "<a href="mailto:ndn-interest@lists.cs.ucla.edu" class="">ndn-interest@lists.cs.ucla.edu</a>" <<a href="mailto:ndn-interest@lists.cs.ucla.edu" class="">ndn-interest@lists.cs.ucla.edu</a>><br class=""><span style="font-weight: bold;" class="">Subject:<span class="Apple-converted-space"> </span></span>Re: [Ndn-interest] (NDN-js) query localhost from browser?<br class=""></div><div class=""><br class=""></div><div class=""><div dir="ltr" class=""><div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">nfd.conf is same as nfd.conf.sample.<br class=""></div><br class="">I have confirmed the scope violation issue by disabling scope checking in NFD.<br class="">(Commented out lines 116, 227, 320, 406 in daemon/fw/forwarder.cpp.)<br class="">Then the browser gets the data.<br class=""><br class="">Ashlesh<br class=""><br class=""><div style="" class=""><hr tabindex="-1" style="display: inline-block; width: 581.125px;" class=""><div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri,sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Thompson, Jeff <<a href="mailto:jefft0@remap.ucla.edu" class="">jefft0@remap.ucla.edu</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Wednesday, July 20, 2016 3:55 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Ashlesh Gawande (agawande); El Mimouni, Omar Ilias (IntlAssoc);<span class="Apple-converted-space"> </span><a href="mailto:ndn-interest@lists.cs.ucla.edu" class="">ndn-interest@lists.cs.ucla.edu</a><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Ndn-interest] (NDN-js) query localhost from browser?</font><div class=""> </div></div><div class=""><div class="">See inline below.</div><div class=""><br class=""></div><span id="OLK_SRC_BODY_SECTION" class=""><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class="" type="cite"><div style="font-family: Calibri; font-size: 11pt; text-align: left; border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in; border-top-color: rgb(181, 196, 223);" class=""><span style="font-weight: bold;" class="">From:<span class="Apple-converted-space"> </span></span>"Ashlesh Gawande (agawande)" <<a href="mailto:agawande@memphis.edu" class="">agawande@memphis.edu</a>><br class=""><span style="font-weight: bold;" class="">Date:<span class="Apple-converted-space"> </span></span>Wednesday, July 20, 2016 at 13:41:00<br class=""></div><div class=""><div style="word-wrap: break-word; font-size: 14px; font-family: Calibri, sans-serif;" class=""></div></div></blockquote></span><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class="" type="cite"><div class=""><br class=""></div></blockquote><span id="OLK_SRC_BODY_SECTION" class=""><div class=""><div style="word-wrap: break-word; font-size: 14px; font-family: Calibri, sans-serif;" class=""><div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class="" type="cite"><div style="margin-top: 0px; margin-bottom: 0px;" class="">I have tried that example and the browser does not get anything.</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">NFD logs show that the interest for<span class="Apple-converted-space"> </span><span class="">/localhost/nfd/faces/list is dropped due to scope violation.</span></div></blockquote></div></div></div></span><div class=""><br class=""></div><div class="">Is your nfd.conf modified from <span style="font-family: Menlo; font-size: 12px;" class="">/usr/local/etc/ndn/nfd.conf.sample</span> , especially in the websocket section? </div><span id="OLK_SRC_BODY_SECTION" class=""><div class=""><div style="word-wrap: break-word; font-size: 14px; font-family: Calibri, sans-serif;" class=""><div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class="" type="cite"><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span class=""><br class=""></span></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span class="">In <a href="https://github.com/named-data/ndn-js/blob/master/examples/browser/test-list-faces.html#L47" class="OWAAutoLink" id="LPlnk866716">https://github.com/named-data/ndn-js/blob/master/examples/browser/test-list-faces.html#L47</a></span></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">it says that a Unix socket is used to connect to the local forwarder, but nfd-status shows websocket.</div></blockquote></div></div></div></span><div class=""><br class=""></div><div class="">Whoopsie!  (That’s a typo from copying from the Node.js example.) You’re right. it connects with WebSocket. I fixed the comment.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">- Jeff T</div><span id="OLK_SRC_BODY_SECTION" class=""><div class=""><div style="word-wrap: break-word; font-size: 14px; font-family: Calibri, sans-serif;" class=""><div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class="" type="cite"><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div></blockquote><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p></div><div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri,sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Ndn-interest <<a href="mailto:ndn-interest-bounces@lists.cs.ucla.edu" class="">ndn-interest-bounces@lists.cs.ucla.edu</a>> on behalf of Thompson, Jeff <<a href="mailto:jefft0@remap.ucla.edu" class="">jefft0@remap.ucla.edu</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Wednesday, July 20, 2016 3:25:27 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>El Mimouni, Omar Ilias (IntlAssoc);<span class="Apple-converted-space"> </span><a href="mailto:ndn-interest@lists.cs.ucla.edu" class="">ndn-interest@lists.cs.ucla.edu</a><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Ndn-interest] (NDN-js) query localhost from browser?</font><div class=""> </div></div><div class=""><div class="">See the example test-list-faces:</div><div class=""><a href="https://github.com/named-data/ndn-js/blob/master/examples/browser/test-list-faces.html" class="">https://github.com/named-data/ndn-js/blob/master/examples/browser/test-list-faces.html</a></div><div class=""><br class=""></div><div class="">- Jeff T</div><div class=""><br class=""></div><span id="OLK_SRC_BODY_SECTION" class=""><div style="font-family: Calibri; font-size: 11pt; text-align: left; border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in; border-top-color: rgb(181, 196, 223);" class=""><span style="font-weight: bold;" class="">From:<span class="Apple-converted-space"> </span></span>Ndn-interest <<a href="mailto:ndn-interest-bounces@lists.cs.ucla.edu" class="">ndn-interest-bounces@lists.cs.ucla.edu</a>> on behalf of "El Mimouni, Omar Ilias (IntlAssoc)" <<a href="mailto:omarilias.elmimouni@nist.gov" class="">omarilias.elmimouni@nist.gov</a>><br class=""><span style="font-weight: bold;" class="">Date:<span class="Apple-converted-space"> </span></span>Wednesday, July 20, 2016 at 13:16:00<br class=""><span style="font-weight: bold;" class="">To:<span class="Apple-converted-space"> </span></span>"<a href="mailto:ndn-interest@lists.cs.ucla.edu" class="">ndn-interest@lists.cs.ucla.edu</a>" <<a href="mailto:ndn-interest@lists.cs.ucla.edu" class="">ndn-interest@lists.cs.ucla.edu</a>><br class=""><span style="font-weight: bold;" class="">Subject:<span class="Apple-converted-space"> </span></span>[Ndn-interest] (NDN-js) query localhost from browser?<br class=""></div><div class=""><br class=""></div><div class=""><div lang="EN-US" class=""><div class="WordSection1"><div style="margin-top: 0px; margin-bottom: 0px;" class="">Hi all,</div><p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px;"> </p><div style="margin-top: 0px; margin-bottom: 0px;" class="">I am currently playing with NDN-js library, and I was wondering if it is possible to query the localhost (e.g.  <b class="">ndn:/localhost/nfd/faces/list</b>) .</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">I could do that with node using UnixSocket. Is it possible to do it from a browser (knowing that the browser uses WebSockets) ?</div><p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px;"> </p><div style="margin-top: 0px; margin-bottom: 0px;" class="">Thanks.<span class="Apple-converted-space"> </span></div></div></div></div></span></div></div></div></span></div></div></div></div></div></span><span style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""></span><span style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Ndn-interest mailing list</span><br style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:Ndn-interest@lists.cs.ucla.edu" style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Ndn-interest@lists.cs.ucla.edu</a><br style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest</a></div></blockquote></div><br class=""></body></html>