<html><head><meta http-equiv="Content-Type" content="text/html charset=koi8-r"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I see.  Yes, for the dummy applications based on ndn::Consumer, this is the "prefix", which you can get using one of the methods from ndn::Name class.  For example:</div><div><br></div><div>ndn::Name prefix = interest->GetName ().cut (1); </div><div><br></div><div>(refer to <a href="http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_name.html">http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_name.html</a> for other methods)</div><div><br></div><div>---</div><div>Alex</div><br><div><div>On Feb 12, 2013, at 11:35 AM, Natalya Rozhnova <<a href="mailto:natalya.rozhnova@lip6.fr">natalya.rozhnova@lip6.fr</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>If I understand correctly, the name is something like "prefix/1", "prefix/2" ... "prefix/ 1000" etc</div><div>I need just to pull "prefix", not whole name...</div><div> </div><div>Thanks,</div><div>Natalya</div><div> </div><div> </div><div>13.02.2013, 02:31, "Alex Afanasyev" <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>>:</div><blockquote><p>What do you mean by prefix then?  Interest/NACK has only name, which you can get with GetName() method...<br><br>---<br>Alex<br><br>On Feb 12, 2013, at 11:29 AM, Natalya Rozhnova <<a href="mailto:natalya.rozhnova@lip6.fr">natalya.rozhnova@lip6.fr</a>> wrote:</p><blockquote> Hi guys,<br><br> I have a very stupid question... Is it possible to get a prefix from an Interest/Nack header? I see just the function GetName but this is not what I actually need.<br><br> Thanks in advance,<br> Natalya<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">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></blockquote><div> <br class="webkit-block-placeholder"></div></blockquote>_______________________________________________<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></body></html>