[Nfd-dev] Fwd: Fwd: How ccnx sets sock file

Junxiao Shi shijunxiao at email.arizona.edu
Tue Dec 9 12:59:27 PST 2014


This is a question about CCNx. I'm forwarding this question to ccnx mailing
list.

---------- Forwarded message ----------
From: Lan Wang (lanwang) <lanwang at memphis.edu>
Date: Tue, Dec 9, 2014 at 1:56 PM
Subject: [Nfd-dev] Fwd: How ccnx sets sock file
To: "nfd-dev at lists.cs.ucla.edu" <nfd-dev at lists.cs.ucla.edu>


 Any suggestions on how to solve this problem?

Lan


Begin forwarded message:

 *From: *"Ashlesh Gawande (agawande)" <agawande at memphis.edu>
 *Subject: **Re: How ccnx sets sock file*
 *Date: *December 9, 2014 1:42:12 PM CST
 *To: *"Lan Wang (lanwang)" <lanwang at memphis.edu>
 *Cc: *"Vince Lehman (vslehman)" <vslehman at memphis.edu>

 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:

  export CCN_LOCAL_SOCKNAME=/tmp/file.sock

 This is what miniccnx does on each node before starting CCNx when it
instantiates the nodes.

 For NFD:

 I set up two nodes connected to each other.
 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.
 As a temporary work around heres what I did:

 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.

 2) Copied the /usr/local/etc/ndn/nfd.conf file to
/usr/local/etc/ndn/host1-nfd.conf
and changed the sock file name to /var/run/host1-nfd.conf.

 3) Started nfd from that folder using the following:
 ./nfd --config /usr/local/etc/ndn/host1-nfd.conf &

 ./nfd-status ​ and ./nfdc works properly.

 4) I repeat the procedure for the other node.

 I was wondering if there is an easy way?  Vince has directed me to how
Obaid was running it:
 http://redmine.named-data.net/issues/1790​

 Ashlesh



_______________________________________________
Nfd-dev mailing list
Nfd-dev at lists.cs.ucla.edu
http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20141209/3ef714ae/attachment.html>


More information about the Nfd-dev mailing list