<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<base href="x-msg://5087/">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Any suggestions on how to solve this problem?<br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br class="Apple-interchange-newline">
Lan</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br>
</div>
</div>
<div><br>
<div>Begin forwarded message:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;">
<span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>From:
</b></span><span style="font-family:'Helvetica'; font-size:medium;">"Ashlesh Gawande (agawande)" <<a href="mailto:agawande@memphis.edu">agawande@memphis.edu</a>><br>
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;">
<span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>Subject:
</b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>Re: How ccnx sets sock file</b><br>
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;">
<span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>Date:
</b></span><span style="font-family:'Helvetica'; font-size:medium;">December 9, 2014 1:42:12 PM CST<br>
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;">
<span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>To:
</b></span><span style="font-family:'Helvetica'; font-size:medium;">"Lan Wang (lanwang)" <<a href="mailto:lanwang@memphis.edu">lanwang@memphis.edu</a>><br>
</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;">
<span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>Cc:
</b></span><span style="font-family:'Helvetica'; font-size:medium;">"Vince Lehman (vslehman)" <<a href="mailto:vslehman@memphis.edu">vslehman@memphis.edu</a>><br>
</span></div>
<br>
<div dir="ltr" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif; position: static; z-index: auto; ">
<div style="margin-top: 0px; margin-bottom: 0px; ">So I am using the mininet (miniccnx) environment where virtual machines share file systems. Miniccnx can run multiple instances of CCNx on these virtual machines. The sock file it uses can be specified as following:<br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; "><br>
</div>
<div dir="ltr" style="font-family: Helvetica; orphans: 2; widows: 2; ">
<div id="divtagdefaultwrapper" style="font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; ">
<div style="margin-top: 0px; margin-bottom: 0px; ">export CCN_LOCAL_SOCKNAME=/tmp/file.sock<br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; "><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; ">This is what miniccnx does on each node before starting CCNx when it instantiates the nodes.<br>
</div>
<br>
</div>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; ">For NFD:<br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; "> <br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; ">I set up two nodes connected to each other. <br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; ">Then if I want to start different instances of NFD and applications on them. To do this I need to have different sock files, but the sock file is hard coded in ndn-cxx. <br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; ">As a temporary work around heres what I did:<br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; "><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; ">1) Compiled ndn-cxx with a different sock file (/var/run/host1-nfd.conf) and then compiled NFD and moved the binaries to a folder on desktop. <br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; "><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; ">2) Copied the /usr/local/etc/ndn/nfd.conf file to<span class="Apple-converted-space"> </span><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); ">/usr/local/etc/ndn/</span>host1-nfd.conf
and changed the sock file name to <span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); ">/var/run/host1-nfd.conf</span>. <br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; "><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; ">3) Started nfd from that folder using the following:<br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; ">./nfd --config <span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); ">/usr/local/etc/ndn/</span><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); ">host1-nfd.conf</span><span class="Apple-converted-space"> </span>&<br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; "><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; "><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); ">./nfd-status </span><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255); ">
and ./nfdc works properly.</span><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; "><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; ">4) I repeat the procedure for the other node. <br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; "><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; ">I was wondering if there is an easy way? Vince has directed me to how Obaid was running it:<br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; "><a href="http://redmine.named-data.net/issues/1790" id="lnk402931">http://redmine.named-data.net/issues/1790</a><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; "><span style="font-size: 12pt; "><br>
</span></div>
<div style="margin-top: 0px; margin-bottom: 0px; "><span style="font-size: 12pt; ">Ashlesh</span></div>
<div style="word-wrap: break-word; "><br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</body>
</html>