[ndnSIM] Access a variable in ndn-consumer.cpp file

madhurima buragohain madhurimajya at gmail.com
Thu Sep 20 21:14:13 PDT 2018


Dear All,

I want to count the number of NACK packets received in consumer.cpp  file.

I have declared a variable "count" in ndn-consumer.hpp to count the number
of NACK packets received.

void
Consumer::OnNack(shared_ptr<const lp::Nack> nack)
{
static int count=0;
count++;
.....
}

I want to access the value "count " from the ndn-simple.cc file in scratch.
How should I proceed?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180921/5bbc6c53/attachment.html>


More information about the ndnSIM mailing list