[ndnSIM] Custom Strategy - undefined reference errors?
aa at CS.UCLA.EDU
Sun Dec 18 22:20:54 PST 2016
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 http://ndnsim.net/2.3/helpers.html#forwarding-strategy <http://ndnsim.net/2.3/helpers.html#forwarding-strategy>).
> On Dec 18, 2016, at 7:57 PM, John Baugh <jpbaugh at umich.edu> wrote:
> 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.
> On Dec 18, 2016 10:50 PM, "Junxiao Shi" <shijunxiao at email.arizona.edu <mailto:shijunxiao at email.arizona.edu>> wrote:
> Hi John
> Did you choose your strategy in the StrategyChoice table?
> Yours, Junxiao
> On Dec 18, 2016 20:43, "John Baugh" <jpbaugh at umich.edu <mailto:jpbaugh at umich.edu>> wrote:
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM