[Nfd-dev] working with repo-ng

Mohammad Alhowaidi malhowaidi at gmail.com
Fri May 20 19:22:11 PDT 2016


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20160520/34bbe6be/attachment.html>


More information about the Nfd-dev mailing list