<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Rakesh</div><div class=""><br class=""></div><div class="">Strategy is not the right place to implement this feature.</div><span class="">As indicated in NFD devguide “Should I Develop a New Strategy” section:<br class=""></span><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><span class="">The only purpose of the strategy is to decides how to forward Interests and cannot override any processing steps in the forwarding pipelines. If it is desired to support a new packet type (other than Interest and Data), a new field in Interest or Data packets, or override some actions in the pipelines (e.g., disable ContentStore lookup), it can be only accomplished by modification of the forwarding pipelines. </span></blockquote><span class=""><div class="">Strategy has no access to the Content Store, and strategy cannot inject or intercept any Data packet.</div></span><span class=""><br class="">You should implement this feature by modifying forwarding pipelines instead.<br class=""><br class=""></span>Yours, Junxiao<span class=""><br class=""></span><span class=""><br class=""></span>PS: I’m on this list. No need to summon me by CCing. I initially ignored this question because it’s already explained in NFD devguide.<br class=""><br class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 9, 2017, at 10:30 AM, Rakesh Ranjan Jha <<a href="mailto:rakeshranjan.jha@gmail.com" class="">rakeshranjan.jha@gmail.com</a>> wrote:</div><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">I'm trying to spontaneously inject a cached data (based on a previously unfulfilled interest present in PIT and so I have an interest handle to fetch data) from content store.</div><div class=""><br class=""></div><div class="">1) Derived strategy doesn't seem to have any handle to fowarder although base strategy has a handle and is friend to forwarder to access pipelines. </div><div class="">In order to workaround this I added my strategy also as a friend and gave it a reference to forwarder, similar to base strategy. Is there a better way to access pipeline from strategy?</div><div class=""><br class=""></div><div class="">2) To access data from CS and feed it to outgoing data pipeline, I follow similar mechanism as done on receiving valid interest from forwarder:</div><div class=""><br class=""></div></div></div></blockquote></div><br class=""><div class=""><br class=""></div></body></html>