<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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 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 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 href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></body></html>