[Nfd-dev] [Ndn-interest] (NDN-js) query localhost from browser?

Lixia Zhang lixia at CS.UCLA.EDU
Wed Jul 20 14:44:08 PDT 2016


> On Jul 20, 2016, at 2:15 PM, Thompson, Jeff <jefft0 at remap.UCLA.edu> wrote:
> 
> NFD team, any suggestions on scope violation connecting to WebSocket locally?

this thread ought to go nfd-dev list


> 
> From: "Ashlesh Gawande (agawande)" <agawande at memphis.edu <mailto:agawande at memphis.edu>>
> Date: Wednesday, July 20, 2016 at 14:11:00
> To: Jeff Thompson <jefft0 at remap.ucla.edu <mailto:jefft0 at remap.ucla.edu>>, "El Mimouni, Omar Ilias (IntlAssoc)" <omarilias.elmimouni at nist.gov <mailto:omarilias.elmimouni at nist.gov>>, "ndn-interest at lists.cs.ucla.edu <mailto:ndn-interest at lists.cs.ucla.edu>" <ndn-interest at lists.cs.ucla.edu <mailto:ndn-interest at lists.cs.ucla.edu>>
> Subject: Re: [Ndn-interest] (NDN-js) query localhost from browser?
> 
> nfd.conf is same as nfd.conf.sample.
> 
> I have confirmed the scope violation issue by disabling scope checking in NFD.
> (Commented out lines 116, 227, 320, 406 in daemon/fw/forwarder.cpp.)
> Then the browser gets the data.
> 
> Ashlesh
> 
> From: Thompson, Jeff <jefft0 at remap.ucla.edu <mailto:jefft0 at remap.ucla.edu>>
> Sent: Wednesday, July 20, 2016 3:55 PM
> To: Ashlesh Gawande (agawande); El Mimouni, Omar Ilias (IntlAssoc); ndn-interest at lists.cs.ucla.edu <mailto:ndn-interest at lists.cs.ucla.edu>
> Subject: Re: [Ndn-interest] (NDN-js) query localhost from browser?
>  
> See inline below.
> 
>> From: "Ashlesh Gawande (agawande)" <agawande at memphis.edu <mailto:agawande at memphis.edu>>
>> Date: Wednesday, July 20, 2016 at 13:41:00
>> 
>> I have tried that example and the browser does not get anything.
>> NFD logs show that the interest for /localhost/nfd/faces/list is dropped due to scope violation.
> 
> 
> Is your nfd.conf modified from /usr/local/etc/ndn/nfd.conf.sample , especially in the websocket section? 
>> 
>> In https://github.com/named-data/ndn-js/blob/master/examples/browser/test-list-faces.html#L47 <https://github.com/named-data/ndn-js/blob/master/examples/browser/test-list-faces.html#L47>
>> it says that a Unix socket is used to connect to the local forwarder, but nfd-status shows websocket.
> 
> 
> Whoopsie!  (That’s a typo from copying from the Node.js example.) You’re right. it connects with WebSocket. I fixed the comment.
> 
> Thanks,
> - Jeff T
>> 
> 
> From: Ndn-interest <ndn-interest-bounces at lists.cs.ucla.edu <mailto:ndn-interest-bounces at lists.cs.ucla.edu>> on behalf of Thompson, Jeff <jefft0 at remap.ucla.edu <mailto:jefft0 at remap.ucla.edu>>
> Sent: Wednesday, July 20, 2016 3:25:27 PM
> To: El Mimouni, Omar Ilias (IntlAssoc); ndn-interest at lists.cs.ucla.edu <mailto:ndn-interest at lists.cs.ucla.edu>
> Subject: Re: [Ndn-interest] (NDN-js) query localhost from browser?
>  
> See the example test-list-faces:
> https://github.com/named-data/ndn-js/blob/master/examples/browser/test-list-faces.html <https://github.com/named-data/ndn-js/blob/master/examples/browser/test-list-faces.html>
> 
> - Jeff T
> 
> From: Ndn-interest <ndn-interest-bounces at lists.cs.ucla.edu <mailto:ndn-interest-bounces at lists.cs.ucla.edu>> on behalf of "El Mimouni, Omar Ilias (IntlAssoc)" <omarilias.elmimouni at nist.gov <mailto:omarilias.elmimouni at nist.gov>>
> Date: Wednesday, July 20, 2016 at 13:16:00
> To: "ndn-interest at lists.cs.ucla.edu <mailto:ndn-interest at lists.cs.ucla.edu>" <ndn-interest at lists.cs.ucla.edu <mailto:ndn-interest at lists.cs.ucla.edu>>
> Subject: [Ndn-interest] (NDN-js) query localhost from browser?
> 
> Hi all,
>  
> I am currently playing with NDN-js library, and I was wondering if it is possible to query the localhost (e.g.  ndn:/localhost/nfd/faces/list) .
> I could do that with node using UnixSocket. Is it possible to do it from a browser (knowing that the browser uses WebSockets) ?
>  
> Thanks. 
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu <mailto:Ndn-interest at lists.cs.ucla.edu>
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest <http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20160720/423cc31b/attachment.html>


More information about the Nfd-dev mailing list