<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Thanks Chen!<div><br></div><div>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:</div><div><br></div><div>Ptr<Name> newName = Create<Name>();</div><div>newName->append(oldname.GetPrefix(1));</div><div>newName->append("video");</div><div>newName->append(oldname.GetPostfix(1));</div><div><br></div><div>---</div><div>Alex</div><div><br><div><div>On Nov 30, 2013, at 9:38 PM, chen dqing <<a href="mailto:kele86838437@gmail.com">kele86838437@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>Hi <span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">Isuru,</span></div><div><a href="http://ndnsim.net/applications.html#producer-example-interest-hijacker">http://ndnsim.net/applications.html#producer-example-interest-hijacker</a><br>
</div><div><br></div>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.  <div><br></div><div>Chen</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/11/30  <span dir="ltr"><<a href="mailto:i.liyanage@surrey.ac.uk" target="_blank">i.liyanage@surrey.ac.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div dir="ltr">
<div name="divtagdefaultwrapper" style="font-size:12pt;margin:0;font-family:Calibri,Arial,Helvetica,sans-serif">
Hi,
<div><br>
</div>
<div>Is there a way to insert string in between a one of the current name, in the application.</div>
<div><br>
</div>
<div>eg.</div>
<div>First name: prefix/hello</div>
<div><br>
</div>
<div>"video" should be added in between "prefix" and "hello" so that the </div>
<div><br>
</div>
<div>new name: prefix/video/hello</div>
<div><br>
</div>
<div>Many thanks,</div>
<div>Isuru</div>
</div>
</div>

<br>_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></div></body></html>