<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">In addition to subclassing, the strategy needs to be "registered" with the `NFD_REGISTER_STRATEGY(YourStrategyClassName);` macro and choose to use this strategy for the namespace of your choice (e.g., using StrategyChoiceHelper <a href="http://ndnsim.net/2.3/helpers.html#forwarding-strategy" class="">http://ndnsim.net/2.3/helpers.html#forwarding-strategy</a>).</div><div class=""><br class=""></div><div class="">---</div><div class="">Alex</div><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 18, 2016, at 7:57 PM, John Baugh <<a href="mailto:jpbaugh@umich.edu" class="">jpbaugh@umich.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class="">Junxiao,<div dir="auto" class=""><br class=""></div><div dir="auto" class="">I subclassed MulticastStrategy.  The instructions on the site say to create your own custom strategy you subclass Strategy.  I suspect it works that way with one of the derived classes from Strategy also.</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Thanks</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">JPB</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Dec 18, 2016 10:50 PM, "Junxiao Shi" <<a href="mailto:shijunxiao@email.arizona.edu" class="">shijunxiao@email.arizona.edu</a>> wrote:<br type="attribution" class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto" class="">Hi John <div dir="auto" class=""><br class=""></div><div dir="auto" class="">Did you choose your strategy in the StrategyChoice table? </div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Yours, Junxiao<br class=""><div class="gmail_extra" dir="auto"><br class=""><div class="gmail_quote">On Dec 18, 2016 20:43, "John Baugh" <<a href="mailto:jpbaugh@umich.edu" target="_blank" class="">jpbaugh@umich.edu</a>> wrote:<br type="attribution" class=""><blockquote class="m_9165407190660263405quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class=""><br class=""></div><div class="">Secondly, I was eventually able to get it to compile, but nothing is being printed out - I have cout statements in the ctor and the afterReceiveInterest.  The CS is receiving data, but the Strategy doesn't seem to be acknowledging the existence of incoming Interest packets.</div><div class=""><br class=""></div></div></blockquote></div></div></div></div>
</blockquote></div></div>
</div></blockquote></div><br class=""></body></html>