[Ndn-interest] interest_prefix

Giuseppe Carella gcarella228 at gmail.com
Fri Dec 15 04:25:42 PST 2017

Hello Junxiao,

I solved the problem. It has been my mistake.
The string has a dirty content that I forgot to remove; that's the reason
I have strange content before the name of the file.

Thank you.

2017-12-15 13:15 GMT+01:00 Junxiao Shi <shijunxiao at email.arizona.edu>:

> 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/ndn-interest/attachments/20171215/b978c344/attachment.html>

More information about the Ndn-interest mailing list