<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Alex, </div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">Thanks for your reply. We did add the following into our cpp program</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature"><blockquote type="cite"><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">const Name YourStrategyClass::STRATEGY_NAME("ndn:/localhost/nfd/strategy/you-strategy-name/%FD%00");<br>NFD_REGISTER_STRATEGY(YourStrategyClass);</span></font></blockquote><div id="AppleMailSignature"><br></div>But it doesn't work. The nfdc cannot use the new strategy with the error code 504. </div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">Is there any other particular things that we need to note in order to install a new forwarding strategy? </div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">Thanks, </div><div id="AppleMailSignature">Best regards, </div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">Lei<br><br><br></div><div>On Feb 9, 2016,3:58 PM,Alex Afanasyev <<a href="mailto:aa@cs.ucla.edu">aa@cs.ucla.edu</a>> wrote:<br><br></div><blockquote type="cite"><div><span></span><br><blockquote type="cite"><span>On Feb 9, 2016, at 2:31 PM, Lei Liu <<a href="mailto:bigcatlei@gmail.com">bigcatlei@gmail.com</a>> wrote:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Hi,</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>We developed a new forwarding strategy, but how to actually use it in NFD? nfdc command-line tool does not recognize this new forwarding strategy.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>NFD developer guide mentioned to modify daemon/fw/available-strategies.cpp and install the new strategy to the list of existing built-in strategies. But this file "daemon/fw/available-strategies.cpp" is no longer available in the latest NFD.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Thanks,</span><br></blockquote><blockquote type="cite"><span>Best regards,</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Lei</span><br></blockquote><span></span><br><span>In .cpp file of your strategy just add</span><br><span></span><br><span>const Name YourStrategyClass::STRATEGY_NAME("ndn:/localhost/nfd/strategy/you-strategy-name/%FD%00");</span><br><span>NFD_REGISTER_STRATEGY(YourStrategyClass);</span><br><span></span><br><span>After that you should be able to use ndn:/localhost/nfd/strategy/you-strategy-name in nfdc.</span><br><span></span><br><span>---</span><br><span>Alex</span><br><span></span><br></div></blockquote></body></html>