[ndnSIM] (no subject)
Alex Afanasyev
alexander.afanasyev at ucla.edu
Sun Dec 1 12:08:07 PST 2013
Thanks Chen!
Just want to add that currently, to "add" a component to a name, you basically need to construct a new name, appending parts from the old name. In Isuru's example it would be something like this:
Ptr<Name> newName = Create<Name>();
newName->append(oldname.GetPrefix(1));
newName->append("video");
newName->append(oldname.GetPostfix(1));
---
Alex
On Nov 30, 2013, at 9:38 PM, chen dqing <kele86838437 at gmail.com> wrote:
> Hi Isuru,
> http://ndnsim.net/applications.html#producer-example-interest-hijacker
>
> There is an example to hijacker incoming Interests.You can write your own procedure that insert string into the name of Interests in Hijacker::OnIntrest method.
>
> Chen
>
>
> 2013/11/30 <i.liyanage at surrey.ac.uk>
> Hi,
>
> Is there a way to insert string in between a one of the current name, in the application.
>
> eg.
> First name: prefix/hello
>
> "video" should be added in between "prefix" and "hello" so that the
>
> new name: prefix/video/hello
>
> Many thanks,
> Isuru
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20131201/6e5ea749/attachment.html>
More information about the ndnSIM
mailing list