[ndnSIM] How to print data size?
Spyridon (Spyros) Mastorakis
spiros.mastorakis at gmail.com
Wed Feb 4 21:17:28 PST 2015
Hello,
you may use the wireEncode method described here:
http://named-data.net/doc/ndn-cxx/current/doxygen/d4/d83/classndn_1_1Data.html
and then use the size method described here to get the size of the data packet:
http://named-data.net/doc/ndn-cxx/current/doxygen/d9/dbd/classndn_1_1Block.html
--
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/
Internet Research Laboratory
PhD Computer Science
UCLA
> On Feb 4, 2015, at 8:32 PM, 최원준 <wonjunchoi001 at gmail.com> wrote:
>
> Hello.
>
> I want to know how much consumer received data.
> How can I print the size of data?
>
> I could get the sequence by contentObject->getName().at(-1).toSequenceNumber()
> but the sequence is not in order from consumer.
>
> Wonjun, Choi
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
More information about the ndnSIM
mailing list