<div dir="ltr">Just rewriting few lines from previous mail, as I realized those were wrongly written.<div> <span style="font-size:12.8px">- Run a simple topology <consumer> - <forwarder> - <producer></span></div><div style="font-size:12.8px">- consumer sends interest. Producer sends data. The data is cached at <b>consumer</b> node.</div><div style="font-size:12.8px">- Consumer request same <b>interest</b> next time. Interest is satisfied at the <b>consumer</b> itself.</div><div><br></div><div>Ashlesh,</div><div><br></div><div>Your answer is helpful. I will try to experiment with logs here.</div><div><br></div><div>Thank you for prompt reply.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 20, 2017 at 9:15 PM, Ashlesh Gawande (agawande) <span dir="ltr"><<a href="mailto:agawande@memphis.edu" target="_blank">agawande@memphis.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 id="m_-7182659707066819190divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Currently there is no way to access content store entries.<br>
</p>
<p>(<a href="https://redmine.named-data.net/issues/4317" class="m_-7182659707066819190OWAAutoLink" id="m_-7182659707066819190LPlnk329434" target="_blank">https://redmine.named-data.<wbr>net/issues/4317</a>)<br>
</p>
<p><br>
</p>
<p>You could add some print statements in cs.cpp <a href="https://github.com/named-data/NFD/tree/master/daemon/table" class="m_-7182659707066819190OWAAutoLink" id="m_-7182659707066819190LPlnk25379" target="_blank">
https://github.com/named-data/<wbr>NFD/tree/master/daemon/table</a><br>
</p>
<p>You can add them as log statements in cs.cpp and then get the log of NFD in Mini-NDN.</p>
<p>See section 9.2.2 on how to add a logging module to NFD (<a href="http://named-data.gitlab.io/TR-NDN-0021-NFD-dev-guide/ndn-0021-nfd-guide.pdf" class="m_-7182659707066819190OWAAutoLink" id="m_-7182659707066819190LPlnk581554" target="_blank">http://named-data.gitlab.io/<wbr>TR-NDN-0021-NFD-dev-guide/ndn-<wbr>0021-nfd-guide.pdf</a>)<br>
</p>
<br>
Ashlesh<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_-7182659707066819190divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Aman Maldar <<a href="mailto:amanmaldar@gmail.com" target="_blank">amanmaldar@gmail.com</a>><br>
<b>Sent:</b> Monday, November 20, 2017 8:04 PM<br>
<b>To:</b> <a href="mailto:mini-ndn@lists.cs.ucla.edu" target="_blank">mini-ndn@lists.cs.ucla.edu</a><br>
<b>Subject:</b> Content store for mini-ndn</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr"><span style="font-size:12.8px">Hello Everyone,</span><br style="font-size:12.8px">
<span style="font-size:12.8px">I appreciate your time and help. I am trying to do following things in mini-ndn.</span>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">- Run a simple topology <consumer> - <forwarder> - <producer></div>
<div style="font-size:12.8px">- consumer sends interest. Producer sends data. The data us cached at producer node.</div>
<div style="font-size:12.8px">- Consumer request same data next time. Interest is satisfied at the producer itself.</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">This is pretty much similar to what I did in ndnSim. <b>ndn-simple-with-<wbr>content-freshnss.cpp</b></div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">
<table class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-highlight m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-tab-size m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-file-line-container" style="border-collapse:collapse;color:rgb(36,41,46);font-size:14px">
<tbody>
<tr>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-LC78" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code-inner m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-file-line" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-size:12px;word-wrap:normal;white-space:pre-wrap">
<span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c">//</span> /*</span></td>
</tr>
<tr>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-L79" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-num m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-line-number" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;width:50px;min-width:50px;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top">
</td>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-LC79" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code-inner m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-file-line" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-size:12px;word-wrap:normal;white-space:pre-wrap">
<span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c">//</span> 1) at time 1 second requests Data from a producer that does not specify freshness</span></td>
</tr>
<tr>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-L80" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-num m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-line-number" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;width:50px;min-width:50px;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top">
</td>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-LC80" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code-inner m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-file-line" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-size:12px;word-wrap:normal;white-space:pre-wrap">
<span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c">//</span> 2) at time 10 seconds requests the same Data packet as client 1</span></td>
</tr>
<tr>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-L81" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-num m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-line-number" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;width:50px;min-width:50px;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top">
</td>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-LC81" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code-inner m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-file-line" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-size:12px;word-wrap:normal;white-space:pre-wrap">
</td>
</tr>
<tr>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-L82" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-num m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-line-number" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;width:50px;min-width:50px;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top">
</td>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-LC82" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code-inner m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-file-line" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-size:12px;word-wrap:normal;white-space:pre-wrap">
<span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c">//</span> 3) at time 2 seconds requests Data from a producer that specifies freshness set to 2 seconds</span></td>
</tr>
<tr>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-L83" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-num m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-line-number" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;width:50px;min-width:50px;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top">
</td>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-LC83" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code-inner m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-file-line" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-size:12px;word-wrap:normal;white-space:pre-wrap">
<span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c">//</span> 4) at time 12 seconds requests the same Data packet as client 3</span></td>
</tr>
<tr>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-L84" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-num m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-line-number" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;width:50px;min-width:50px;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top">
</td>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-LC84" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code-inner m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-file-line" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-size:12px;word-wrap:normal;white-space:pre-wrap">
</td>
</tr>
<tr>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-L85" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-num m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-line-number" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;width:50px;min-width:50px;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top">
</td>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-LC85" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code-inner m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-file-line" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-size:12px;word-wrap:normal;white-space:pre-wrap">
<span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c">//</span> Expectation:</span></td>
</tr>
<tr>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-L86" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-num m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-line-number" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;width:50px;min-width:50px;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top">
</td>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-LC86" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code-inner m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-file-line" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-size:12px;word-wrap:normal;white-space:pre-wrap">
<span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c">//</span> Interests from 1, 3 and 4 will reach producers</span></td>
</tr>
<tr>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-L87" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-num m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-line-number" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;width:50px;min-width:50px;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top">
</td>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-LC87" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code-inner m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-file-line" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-size:12px;word-wrap:normal;white-space:pre-wrap">
<span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c">//</span> Interset from 2 will be served from cache</span></td>
</tr>
<tr>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-L88" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-num m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-line-number" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;width:50px;min-width:50px;font-size:12px;line-height:20px;color:rgba(27,31,35,0.3);text-align:right;white-space:nowrap;vertical-align:top">
</td>
<td id="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-LC88" class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-blob-code-inner m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-js-file-line" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-size:12px;word-wrap:normal;white-space:pre-wrap">
<span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="m_-7182659707066819190x_gmail-m_-2011678791439427984gmail-pl-c">//</span> */</span></td>
</tr>
</tbody>
</table>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">I have gone through reference material and mail chains, but didn't find a way to access content store entries.<br>
</div>
<div style="font-size:12.8px">What is the best way to proceed with this? </div>
<div><br>
</div>
<div>Thank you.</div>
-- <br>
<div class="m_-7182659707066819190x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><b><font size="2">Regards,</font></b><font size="2"><b><i><br>
</i><font size="4"><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)">M<span></span>r. Maldar Aman M.</span></span></font></b></font><font size="4"><b><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)"><span></span><span></span></span></span></b></font><br>
<b>University of Massachusetts, Lowell</b><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><b><font size="2">Regards,</font></b><font size="2"><b><i><br></i><font size="4"><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)">M<span></span>r. Maldar Aman M.</span></span></font></b></font><font size="4"><b><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)"><span></span><span></span></span></span></b></font><br><b>University of Massachusetts, Lowell</b><br></div></div></div></div>
</div>