[ndnSIM] How to get the "size" of interest messages ?

Anil Jangam anilj.mailing at gmail.com
Fri Jun 3 11:31:49 PDT 2016

Hi Ali,

One way to get it using following API.

std::to_string(interest.wireEncode().size());        // This will give you
the string form of the size number.

Same way you can get the size of the data message.



On Fri, Jun 3, 2016 at 3:39 AM, Ali Marandi <ali1marandi at gmail.com> wrote:

> Hi !
> I would like to get the size of outgoing interest messages, i.e., in
> "onOutgoingInterest". Could you please let me know the correct way of doing
> this ?
> Thanks.
> A
> _______________________________________________
> 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/20160603/1bf40188/attachment.html>

More information about the ndnSIM mailing list