<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>I am not sure how you would run two instances without Mini-NDN.</p>
<p><br>
</p>
<p>client.conf tells programs (NLSR etc.) how to connect to NFD i.e. which sock file/transport to use.</p>
<p><br>
</p>
<p>I think you can export different $HOME in two different terminals and then put two different client files in there and then run NFD.</p>
<p><br>
</p>
<p>Ashlesh</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Matteo Bertolino <Matteo.Bertolino@eurecom.fr><br>
<b>Sent:</b> Wednesday, November 23, 2016 7:19:41 AM<br>
<b>To:</b> Ashlesh Gawande (agawande)<br>
<b>Cc:</b> mini-ndn@lists.cs.ucla.edu<br>
<b>Subject:</b> Re: [Mini-NDN] Where does mini start the nfd?</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Thanks! An important question.<br>
<br>
I would like to avoid mini and run two nfd different istances in two  <br>
different process.<br>
I noticed that it is not possible use nfd-start, then I do the following:<br>
<br>
Process 1:<br>
nfd --config nfd.conf<br>
<br>
Process 2:<br>
nfd --config nfd2.conf<br>
<br>
Where "diff nfd.conf nfd2.conf" is:<br>
90c90<br>
<     path /var/run/nfd.sock ; Unix stream listener path<br>
---<br>
>     path /var/run/nfd2.sock ; Unix stream listener path<br>
97c97<br>
<     port 6363 ; TCP listener port number<br>
---<br>
>     port 6364 ; TCP listener port number<br>
106c106<br>
<     port 6363 ; UDP unicast port number<br>
---<br>
>     port 6364 ; UDP unicast port number<br>
179c179<br>
<     port 9696 ; WebSocket listener port number<br>
---<br>
>     port 9697 ; WebSocket listener port number<br>
<br>
<br>
I noticed that it is not enough. I had a look on the code that you  <br>
passed me in the previous answer. I notice that client.conf file has a  <br>
role. How can I reach my goal?<br>
Thanks a lot.<br>
<br>
matteo<br>
<br>
<br>
<br>
Quoting "Ashlesh Gawande (agawande)" <agawande@memphis.edu>:<br>
<br>
> <a href="https://github.com/named-data/mini-ndn/blob/master/ndn/ndn_host.py#L102">
https://github.com/named-data/mini-ndn/blob/master/ndn/ndn_host.py#L102</a><br>
><br>
> <a href="https://github.com/named-data/mini-ndn/blob/master/ndn/nfd.py#L62">https://github.com/named-data/mini-ndn/blob/master/ndn/nfd.py#L62</a><br>
><br>
> Ashlesh<br>
><br>
> On Nov 23, 2016 4:25 AM, Matteo Bertolino   <br>
> <Matteo.Bertolino@eurecom.fr> wrote:<br>
> Good morning,<br>
> I would like to study how mini launch several NFD instance on its nodes.<br>
><br>
> Where I open minindn script, I don't read something like "sudo nfd-start"  or<br>
> "sudo /NFD/bin/nfd".<br>
><br>
><br>
> I just read:<br>
><br>
> nfdConfFile = "%s/nfd.conf" % install_dir<br>
>      if os.path.isfile("/usr/local/etc/ndn/nfd.conf") == True:<br>
>          shutil.copy2("/usr/local/etc/ndn/nfd.conf", nfdConfFile)<br>
>      elif os.path.isfile("/usr/local/etc/ndn/nfd.conf.sample") == True:<br>
>          shutil.copy2("/usr/local/etc/ndn/nfd.conf.sample", nfdConfFile)<br>
>      else:<br>
>          sys.exit("nfd.conf or nfd.conf.sample cannot be found in the<br>
> expected directory. Exit.")<br>
><br>
>      call(["sudo", "sed", "-i", 's|default_level [A-Z]*$|default_level<br>
> $LOG_LEVEL|g', nfdConfFile])<br>
><br>
> Where is the nfd started?<br>
><br>
> Thanks!<br>
><br>
> -------------------------------------------------------------------------------<br>
> This message was sent using EURECOM Webmail: <a href="http://webmail.eurecom.fr">
http://webmail.eurecom.fr</a><br>
><br>
> _______________________________________________<br>
> Mini-NDN mailing list<br>
> Mini-NDN@lists.cs.ucla.edu<br>
> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn">http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a><br>
><br>
<br>
<br>
<br>
-------------------------------------------------------------------------------<br>
This message was sent using EURECOM Webmail: <a href="http://webmail.eurecom.fr">
http://webmail.eurecom.fr</a><br>
<br>
</div>
</span></font>
</body>
</html>