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

Muktadir R Chowdhury (mrchwdhr) mrchwdhr at memphis.edu
Wed Jul 20 14:43:53 PDT 2016


The example works on my Mac OSX, but did not work on Ubuntu 14.04 (VM). Ashlesh was also using Ubuntu 14.04 that's why he is also not getting any data back.


Muktadir

________________________________
From: Ndn-interest <ndn-interest-bounces at lists.cs.ucla.edu> on behalf of Thompson, Jeff <jefft0 at remap.UCLA.edu>
Sent: Thursday, July 21, 2016 3:15:15 AM
To: Ashlesh Gawande (agawande); El Mimouni, Omar Ilias (IntlAssoc); ndn-interest at lists.cs.ucla.edu
Subject: Re: [Ndn-interest] (NDN-js) query localhost from browser?

NFD team, any suggestions on scope violation connecting to WebSocket locally?

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

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

- 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20160720/4be53fdf/attachment.html>


More information about the Ndn-interest mailing list