[ndnSIM] Access a variable in ndn-consumer.cpp file
madhurimajya at gmail.com
Thu Sep 20 21:14:13 PDT 2018
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.
Consumer::OnNack(shared_ptr<const lp::Nack> nack)
static int count=0;
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...
More information about the ndnSIM