[ndnSIM] TransmittedContentObjects Callback
alexander.afanasyev at ucla.edu
Fri Mar 29 20:18:31 PDT 2013
It is always helpful if you can give a scenario file (an excerpt from it), which will help to reproduce the problem.
For this particular case, I see that you have a small problem with connecting the trace. The application that is installed on the node is not "aggregated" to a node object, meaning that "/NodeList/*/$ns3::ndn::Producer" will not find anything. Instead, you should do something like this:
Config::Connect ("/NodeList/*/ApplicationList/*/TransmittedContentObjects", MakeCallback (ContentTransmitted))
(instead of *, you can put specific node id and application id)
If you want, you can always to constrain your trace only to producer applications, like this:
Let me know if it is still not working.
On Mar 29, 2013, at 7:50 PM, Cesar Ghali <cghali at uci.edu> wrote:
> I am new to ndnSIM and the answer to my question might be simple but I have been trying for the last couple of hours with no success. I am using this code to connect the TransmittedContentObjects to function ContentTransmitted. This function only prints "sent".
> Config::Connect ("/NodeList/*/$ns3::ndn::Producer/TransmittedContentObjects", MakeCallback (ContentTransmitted));
> However, this does not seem to work since "sent" is not printed. My ndnSIM setup is as the instructions on this page https://github.com/cawka/ndnSIM-scenario-template/blob/master/README.md
> Thanks for your help,
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM