<div dir="ltr">You can take a look at the source code of ndnputfile to see how to generate repo command interest:<div><br></div><div><a href="https://github.com/named-data/repo-ng/blob/master/tools/ndnputfile.cpp">https://github.com/named-data/repo-ng/blob/master/tools/ndnputfile.cpp</a></div><div><br></div><div>The repo protocol is documented at:</div><div><br></div><div><a href="http://redmine.named-data.net/projects/repo-ng/wiki/Repo_Protocol_Specification">http://redmine.named-data.net/projects/repo-ng/wiki/Repo_Protocol_Specification</a><br></div><div><br></div><div>Wentao</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 20, 2016 at 7:22 PM, Mohammad Alhowaidi <span dir="ltr"><<a href="mailto:malhowaidi@gmail.com" target="_blank">malhowaidi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Thanks for the reply!<br><br></div>Is there any producer example available for writing/reading to/from the repo? I am trying to insert the files programmatically and respond to the interest coming from the consumer but that is not clear for me as couldn't find a documentation about that!<br><br></div>Thanks,<br></div>Moh'd<br></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Fri, May 20, 2016 at 11:10 AM, Wentao Shang <span dir="ltr"><<a href="mailto:wentaoshang@gmail.com" target="_blank">wentaoshang@gmail.com</a>></span> wrote:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Fri, May 20, 2016 at 8:39 AM, Mohammad Alhowaidi <span dir="ltr"><<a href="mailto:malhowaidi@gmail.com" target="_blank">malhowaidi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello,<br><br></div>I am trying to work with repo-ng , I know 
to add a file to a repository then we need to use ndnputfile, assume I 
execute the following line <br><br>sudo ndnputfile /example/repo/1 /ndn/example/data/1/test.txt test.txt <br><br></div><div>Then if I wanna request the file then which name the consumer should ask for?<br></div></div></blockquote><div><br></div></span><div>/ndn/example/data/1/text.txt is the name that consumers should use. If you're requesting the file over multiple hops, make sure there is a route for that name pointing to your repo.</div><span><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div><br>Also, is there any example for consumer, producer which work with repo-ng?<br></div></div></blockquote><div><br></div></span><div>Any consumer can fetch data from repo-ng by sending normal interests. Producers need to use the repo-insertion protocol in order to add data programmatically.</div><div><br></div><div>Wentao</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div><br><br></div><div>Thanks,<br></div>Moh'd</div>
<br>_______________________________________________<br>
Nfd-dev mailing list<br>
<a href="mailto:Nfd-dev@lists.cs.ucla.edu" target="_blank">Nfd-dev@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">PhD @ IRL, CSD, UCLA</div></div>
</font></span></div></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">PhD @ IRL, CSD, UCLA</div></div>
</div>