[Nfd-dev] working with repo-ng

Wentao Shang wentaoshang at gmail.com
Sat May 21 10:29:00 PDT 2016


You can take a look at the source code of ndnputfile to see how to generate
repo command interest:

https://github.com/named-data/repo-ng/blob/master/tools/ndnputfile.cpp

The repo protocol is documented at:

http://redmine.named-data.net/projects/repo-ng/wiki/Repo_Protocol_Specification

Wentao

On Fri, May 20, 2016 at 7:22 PM, Mohammad Alhowaidi <malhowaidi at gmail.com>
wrote:

> Thanks for the reply!
>
> 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!
>
> Thanks,
> Moh'd
>
> On Fri, May 20, 2016 at 11:10 AM, Wentao Shang <wentaoshang at gmail.com>
> wrote:
>
>>
>>
>> On Fri, May 20, 2016 at 8:39 AM, Mohammad Alhowaidi <malhowaidi at gmail.com
>> > wrote:
>>
>>> Hello,
>>>
>>> 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
>>>
>>> sudo ndnputfile /example/repo/1 /ndn/example/data/1/test.txt test.txt
>>>
>>> Then if I wanna request the file then which name the consumer should ask
>>> for?
>>>
>>
>> /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.
>>
>>
>>>
>>> Also, is there any example for consumer, producer which work with
>>> repo-ng?
>>>
>>
>> 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.
>>
>> Wentao
>>
>>
>>>
>>>
>>> Thanks,
>>> Moh'd
>>>
>>> _______________________________________________
>>> Nfd-dev mailing list
>>> Nfd-dev at lists.cs.ucla.edu
>>> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
>>>
>>>
>>
>>
>> --
>> PhD @ IRL, CSD, UCLA
>>
>
>


-- 
PhD @ IRL, CSD, UCLA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20160521/692aff4c/attachment.html>


More information about the Nfd-dev mailing list