[ndnSIM] Prefix
Alex Afanasyev
alexander.afanasyev at ucla.edu
Tue Feb 12 11:47:44 PST 2013
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:
ndn::Name prefix = interest->GetName ().cut (1);
(refer to http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_name.html for other methods)
---
Alex
On Feb 12, 2013, at 11:35 AM, Natalya Rozhnova <natalya.rozhnova at lip6.fr> wrote:
> If I understand correctly, the name is something like "prefix/1", "prefix/2" ... "prefix/ 1000" etc
> I need just to pull "prefix", not whole name...
>
> Thanks,
> Natalya
>
>
> 13.02.2013, 02:31, "Alex Afanasyev" <alexander.afanasyev at ucla.edu>:
> What do you mean by prefix then? Interest/NACK has only name, which you can get with GetName() method...
>
> ---
> Alex
>
> On Feb 12, 2013, at 11:29 AM, Natalya Rozhnova <natalya.rozhnova at lip6.fr> wrote:
>
> Hi guys,
>
> 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.
>
> Thanks in advance,
> Natalya
> _______________________________________________
> 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/20130212/b15b25e6/attachment.html>
More information about the ndnSIM
mailing list