[ndnSIM] get prefix seqno

Alex Afanasyev alexander.afanasyev at ucla.edu
Fri Mar 20 23:01:25 PDT 2015


Hi Trade,

I’m not sure I fully understand your question.

Assuming sequence number is at the last component of data name, you can do something like (in ndnSIM 2.0, 1.0 will have slightly different syntax)

data.getName().get(-1).toSeqNo();

Did you mean something else?

—
Alex

> On Mar 13, 2015, at 9:32 AM, Trade <trade20122012 at gmail.com> wrote:
> 
> I need to do with multiple prefixes, but how can I grab the seq no of prefix
> so that I can work with prefixes as a list ?
> Thanks.
> Trade
> _______________________________________________
> 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/20150320/27d8dc9c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150320/27d8dc9c/attachment.bin>


More information about the ndnSIM mailing list