<div dir="ltr"><div>Hi John</div><div><br></div><div>As stated in NFD Developer Guide, the forwarding strategy should be stateless, and all states should be stored as StrategyInfo into PIT entries and measurements entries. A stateless object is cheap to construct and copy. Thus, there's nothing to worry about when multiple instances of a nfd::fw::Strategy subclass are constructed and destructed.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Yours, Junxiao</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 12, 2017 at 9:23 PM, John Baugh <span dir="ltr"><<a href="mailto:jpbaugh@umich.edu" target="_blank">jpbaugh@umich.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I implemented a custom Strategy, called PStrat, and wrote a destructor.  Inside of this method, I wrote a simple cout statement to indicate it was being called.</div><div><br></div><div>Now, I'm getting it called 4 times it seems.<br>
<br></div></div></blockquote></div><br></div></div>