[Nfd-dev] [Ndn-interest] interest_prefix

Junxiao Shi shijunxiao at email.arizona.edu
Fri Dec 15 04:15:01 PST 2017


Hi Giuseppe

toUri() is, in fact, completely defined. See
https://named-data.net/doc/NDN-TLV/current/name.html#ndn-uri-scheme
Your problem lies in the consumer application, which sent an Interest with
this unexpected name in the first place.
Can you show the consumer code? (reply-all to nfd-dev mailing list, do not
send to individual developers)

Yours, Junxiao

On Fri, Dec 15, 2017 at 05:28 Giuseppe Carella <gcarella228 at gmail.com>
wrote:

> Good morning community,
>
> I have a problem every time I extract a prefix from the interest object.
> This is what I get: "app1/ping/ndn%3A%2F%2Flocalhost%3A8000%2FMyFile.txt"
> What I would like to get is "app1/ping/MyFile.txt".
> For the extraction of the prefix I am using the method
> "interest.getName().toUri()".
> I know that the method "toUri()" is not completely defined; therefore is
> there an alternative way to get the right prefix?
>
> Thank you.
> Giuseppe.
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20171215/49b7bffb/attachment.html>


More information about the Nfd-dev mailing list