<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 again,</div><div><br></div><div>These are actually the errors that I was hinting to.  Even though you could "compile" without errors, there you couldn't link.</div><div><br></div><div>In any case, I have suspicion that counting can be easily done in a class that simply derives from Queue and then implements custom queuing.  </div><div><br></div><div>At the same time, if you just want to count enqueue/dequeue/drop, then you can easily implement this without even touching Queue implementation, using TraceSources, in similar manner L2RateTracer is implemented (ulits/tracers/l2-tracer.h|cc, utils/tracers/l2-rate-tracer.h|cc).  So, you basically need to create a class that will do counting and "attach" to Enqueue, Dequeue, and Drop traces (<a href="http://www.nsnam.org/doxygen-release/classns3_1_1_queue.html#details">http://www.nsnam.org/doxygen-release/classns3_1_1_queue.html#details</a>).   And this implementation should be either inside ndnSIM module, in a separate module that depends on ndnSIM module, or in an separate project that depends on NS-3 and ndnSIM module (like in these example: <a href="https://github.com/cawka/ndnSIM-ddos-interest-flooding">https://github.com/cawka/ndnSIM-ddos-interest-flooding</a>).</div><div><br></div><div>---</div><div>Alex</div><div><br></div><div><div>On Jul 13, 2013, at 5:05 PM, Natalya Rozhnova <<a href="mailto:natalya.rozhnova@lip6.fr">natalya.rozhnova@lip6.fr</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Oh, I don't have my own derivative queue. My implementation has completely changed since we talked about.</div><div>I actually need to count the number of data packets in the queue per flow. Where flow is defined by prefix name. So, the first idea was to create a std::map <ndn::Name, uint32_t> and dynamically keep the queue lengths per prefix name and then access to the map whenever I need it. (I need to access it in Forwarding Strategy)</div><div>But I got an error: Undefined symbols for architecture x86_64 ...etc...</div><div> </div><div>btw, it's still an open question... Do you have any idea how to implement this ?</div><div> </div><div>Natalya</div><div> </div><div> </div><div>14.07.2013, 06:47, "Alex Afanasyev" <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>>:</div><blockquote type="cite">Btw. I'm not sure that adding ndn-name.h to queue.h is the right way to go.  It basically introduces some circular module dependencies (ndnSIM depends on network and now network module depends on ndnSIM...).  Just wonder why adding this include to a derivative queue (type that you're working on) is not enough?<div> </div><div>The reason you're getting the error is that network module is not configured with boost libraries support.  Even though you got rid of the error right now, you may have bigger problems later (at the linking stage).   If you really want to keep the include, I would add boost dependencies into network module as well (similar how it is done in src/ndnSIM/wscript).</div><div> </div><div>---</div><div>Alex<br><div><br><div><div>On Jul 13, 2013, at 3:36 PM, Natalya Rozhnova <<a href="mailto:natalya.rozhnova@lip6.fr">natalya.rozhnova@lip6.fr</a>> wrote:</div><br><blockquote type="cite"><div>Hi Alex,</div><div> </div><div>My boost library has been installed to "/opt/local/include/boost" by default. I just created a symbolic link between /usr/include and /opt/local/include/boost. May be this is not a very good solution but it avoids to reinstall boost...</div><div> </div><div>Natalya</div><div> </div><div>14.07.2013, 05:27, "Alex Afanasyev" <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>>:</div><blockquote type="cite">Hi Natalya,<div> </div><div>Just curious, what did you do to solve the problem?</div><div> </div><div>---</div><div>Alex</div><div><br><div><div>On Jul 13, 2013, at 6:00 AM, Natalya Rozhnova <<a href="mailto:natalya.rozhnova@lip6.fr">natalya.rozhnova@lip6.fr</a>> wrote:</div><br><blockquote type="cite"><div>Hi again,</div><div><div> </div><div>Problem is resolved. :)</div><div> </div><div> </div><div>13.07.2013, 19:46, "Natalya Rozhnova" <<a href="mailto:natalya.rozhnova@lip6.fr">natalya.rozhnova@lip6.fr</a>>:</div><blockquote type="cite"><div>Hi Alex,</div><div> </div><div>I have a question about boost library. I'm using boost version 1.53 on mac os. Everything works fine until I include the file ndn-name.h to basic class queue.h of network module. I added ndnSIM module as a dependency in wscript of network module. But I get a following error:</div><div>./ns3/ndn-name.h:35:25: error: boost/ref.hpp: No such file or directory</div><div> </div><div>I don't understand why it doesn't compile when I include ndn-name.h in Network module and compile otherwise... </div><div> </div><div>Thanks,</div><div>Natalya</div><div> </div></blockquote></div><div> </div><div>-------- End of forwarded message --------</div><div> </div><div> </div><div>-- <br>Cordialement,<br>Natalya Rozhnova<br>PhD Student<br>Université Pierre et Marie Curie - Sorbonne Universités - <a href="http://www.upmc.fr/">www.upmc.fr</a><br>Laboratoire d'informatique de Paris 6 (LIP6) - Network and Performance Analysis Group (NPA) - <a href="http://www.lip6.fr/">www.lip6.fr</a><br>Le Centre National de la Recherche Scientifique (CNRS) - <a href="http://www.cnrs.fr/">www.cnrs.fr</a><br>Content-Centric Networking - <a href="http://ccnx.org/">ccnx.org</a><br>ANR CONNECT project - <a href="http://anr-connect.org/">anr-connect.org</a></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></blockquote></div></div></blockquote></blockquote></div></div></div></blockquote>_______________________________________________<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>