<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Does it work if you run everything on one node (or just outside of Mini-NDN)?</p>
<p>Seems like there are some errors in demo.html (Check console).</p>
<p>Also check the ping example:</p>
<p><a href="https://github.com/named-data/ndn-js/tree/master/examples/ndnping" class="OWAAutoLink" id="LPlnk760022" previewremoved="true">https://github.com/named-data/ndn-js/tree/master/examples/ndnping</a><br>
<br>
</p>
<p>Ashlesh</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Nfd-dev <nfd-dev-bounces@lists.cs.ucla.edu> on behalf of Giuseppe Carella <gcarella228@gmail.com><br>
<b>Sent:</b> Sunday, September 10, 2017 8:51:06 AM<br>
<b>To:</b> nfd-dev@lists.cs.ucla.edu<br>
<b>Subject:</b> [Nfd-dev] client_server_communication</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>
<div>
<div>Good morning,<br>
<br>
</div>
I have a problem in the communication between an ndn-js client and ndn-cxx server.<br>
</div>
I would like to establish a communication in localhost between client and server.</div>
<div>I run the server by means of mini-ndn:</div>
<div>a) I advertise the prefix on the server side using the command "producer nlsrc advertise /Demo/page"</div>
<div>b) I run the server in background on mini-ndn.<br>
</div>
<div>b) After that I run the client using mini-ndn using the command "client firefox demo.html"</div>
<div><br>
</div>
<div>The application is very easy: the client sends an interest packet and the server asnwers sending a data packet. The problem is that nothing works.
<br>
</div>
<div><br>
</div>
<div>This is what I get on the command line:</div>
<div><br>
</div>
<div><b>mini-ndn> client firefox /home/giuseppe/Desktop/Demo/demo.html<br>
1505051049132    addons.productaddons    WARN    Failed downloading XML, status: 0, reason: error<br>
1505051049147    addons.productaddons    WARN    Failed downloading via XHR, status: 0, reason: error<br>
</b></div>
<div><br>
</div>
<div>My topology is the following one:</div>
<div><br>
</div>
<div>CLIENT-----GATEWAY----PRODUCER<br>
</div>
<div><br>
</div>
<div>I controlled the log file of client, gateway and producer. <br>
</div>
<div>The client and gateway only fill the FIB with the prefix I advertise on the server side (producer).<br>
</div>
<div><br>
</div>
<div>I attached both codes on client side and server side.</div>
<div><br>
</div>
<div><br>
</div>
<div>Thank you.</div>
<div>Best regards,</div>
<div>Giuseppe Carella.<br>
</div>
</div>
</div>
</body>
</html>