<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Alex,<br>
<br>
That actually worked. Both code lines that you suggested worked.
The reason is that I did not know the proper format of the path
parameter of the Config::Connect function.<br>
<br>
Thanks for the help.<br>
<br>
Regards,<br>
Cesar<br>
<br>
<br>
On 03/29/2013 08:18 PM, Alex Afanasyev wrote:<br>
</div>
<blockquote cite="mid:9A0AB396-9508-4257-99E4-E8F9D5E88545@ucla.edu"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div>Hi Cesar,</div>
<div><br>
</div>
<div>It is always helpful if you can give a scenario file (an
excerpt from it), which will help to reproduce the problem.</div>
<div><br>
</div>
<div>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:</div>
<div>
<div style="font-family: sans-serif; overflow: auto; ">
<pre style="background-color: rgb(241, 240, 240); position: static; z-index: auto; "><pre>Config<span style="color: rgb(128, 96, 48);">::</span>Connect <span style="color: rgb(128, 96, 48);">(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(230, 0, 0);">/NodeList/*/ApplicationList/*/TransmittedContentObjects</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 96, 48);">,</span> MakeCallback <span style="color: rgb(128, 96, 48);">(</span>ContentTransmitted<span style="color: rgb(128, 96, 48);">)</span><span style="color: rgb(128, 96, 48);">)</span></pre></pre>
</div>
</div>
<div>(instead of *, you can put specific node id and application
id)</div>
<div><br>
</div>
<div>If you want, you can always to constrain your trace only to
producer applications, like this:</div>
<div>
<div style="font-family: sans-serif; overflow: auto; ">
<pre style="background-color: rgb(241, 240, 240); "><pre>Config<span style="color: rgb(128, 96, 48);">::</span>Connect <span style="color: rgb(128, 96, 48);">(</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(230, 0, 0);">/NodeList/*/ApplicationList/*/$ns3::ndn::Producer/TransmittedContentObjects</span><span style="color: rgb(128, 0, 0);">"</span><span style="color: rgb(128, 96, 48);">,</span>
MakeCallback <span style="color: rgb(128, 96, 48);">(</span>ContentTransmitted<span style="color: rgb(128, 96, 48);">)</span><span style="color: rgb(128, 96, 48);">)</span></pre></pre>
</div>
<div><br>
</div>
</div>
<div>Let me know if it is still not working.</div>
<div><br>
</div>
<div>---</div>
<div>Alex</div>
<div><br>
</div>
<div>
<div>On Mar 29, 2013, at 7:50 PM, Cesar Ghali <<a
moz-do-not-send="true" href="mailto:cghali@uci.edu">cghali@uci.edu</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
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".<br>
<br>
Config::Connect
("/NodeList/*/$ns3::ndn::Producer/TransmittedContentObjects",
MakeCallback (ContentTransmitted));<br>
<br>
However, this does not seem to work since "sent" is not
printed. My ndnSIM setup is as the instructions on this page
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a moz-do-not-send="true"
href="https://github.com/cawka/ndnSIM-scenario-template/blob/master/README.md">https://github.com/cawka/ndnSIM-scenario-template/blob/master/README.md</a><br>
<br>
Thanks for your help,<br>
Cesar<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a moz-do-not-send="true"
href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a class="moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote>
</div>
<br>
</blockquote>
<br>
</body>
</html>