<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" 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="OWAAutoLink" id="LPlnk329434" previewremoved="true">https://redmine.named-data.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="OWAAutoLink" id="LPlnk25379" previewremoved="true">
https://github.com/named-data/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="OWAAutoLink" id="LPlnk581554" previewremoved="true">http://named-data.gitlab.io/TR-NDN-0021-NFD-dev-guide/ndn-0021-nfd-guide.pdf</a>)<br>
</p>
<br>
Ashlesh<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Aman Maldar <amanmaldar@gmail.com><br>
<b>Sent:</b> Monday, November 20, 2017 8:04 PM<br>
<b>To:</b> mini-ndn@lists.cs.ucla.edu<br>
<b>Subject:</b> Content store for mini-ndn</font>
<div> </div>
</div>
<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-content-<wbr>freshnss.cpp</b></div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">
<table class="x_gmail-m_-2011678791439427984gmail-highlight x_gmail-m_-2011678791439427984gmail-tab-size x_gmail-m_-2011678791439427984gmail-js-file-line-container" style="border-collapse:collapse; color:rgb(36,41,46); font-size:14px">
<tbody style="">
<tr style="">
<td id="x_gmail-m_-2011678791439427984gmail-LC78" class="x_gmail-m_-2011678791439427984gmail-blob-code x_gmail-m_-2011678791439427984gmail-blob-code-inner x_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="x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="x_gmail-m_-2011678791439427984gmail-pl-c" style="">//</span> /*</span></td>
</tr>
<tr style="">
<td id="x_gmail-m_-2011678791439427984gmail-L79" class="x_gmail-m_-2011678791439427984gmail-blob-num x_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="x_gmail-m_-2011678791439427984gmail-LC79" class="x_gmail-m_-2011678791439427984gmail-blob-code x_gmail-m_-2011678791439427984gmail-blob-code-inner x_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="x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="x_gmail-m_-2011678791439427984gmail-pl-c" style="">//</span> 1) at time 1 second requests Data from a producer that does not specify freshness</span></td>
</tr>
<tr style="">
<td id="x_gmail-m_-2011678791439427984gmail-L80" class="x_gmail-m_-2011678791439427984gmail-blob-num x_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="x_gmail-m_-2011678791439427984gmail-LC80" class="x_gmail-m_-2011678791439427984gmail-blob-code x_gmail-m_-2011678791439427984gmail-blob-code-inner x_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="x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="x_gmail-m_-2011678791439427984gmail-pl-c" style="">//</span> 2) at time 10 seconds requests the same Data packet as client 1</span></td>
</tr>
<tr style="">
<td id="x_gmail-m_-2011678791439427984gmail-L81" class="x_gmail-m_-2011678791439427984gmail-blob-num x_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="x_gmail-m_-2011678791439427984gmail-LC81" class="x_gmail-m_-2011678791439427984gmail-blob-code x_gmail-m_-2011678791439427984gmail-blob-code-inner x_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 style="">
<td id="x_gmail-m_-2011678791439427984gmail-L82" class="x_gmail-m_-2011678791439427984gmail-blob-num x_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="x_gmail-m_-2011678791439427984gmail-LC82" class="x_gmail-m_-2011678791439427984gmail-blob-code x_gmail-m_-2011678791439427984gmail-blob-code-inner x_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="x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="x_gmail-m_-2011678791439427984gmail-pl-c" style="">//</span> 3) at time 2 seconds requests Data from a producer that specifies freshness set to 2 seconds</span></td>
</tr>
<tr style="">
<td id="x_gmail-m_-2011678791439427984gmail-L83" class="x_gmail-m_-2011678791439427984gmail-blob-num x_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="x_gmail-m_-2011678791439427984gmail-LC83" class="x_gmail-m_-2011678791439427984gmail-blob-code x_gmail-m_-2011678791439427984gmail-blob-code-inner x_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="x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="x_gmail-m_-2011678791439427984gmail-pl-c" style="">//</span> 4) at time 12 seconds requests the same Data packet as client 3</span></td>
</tr>
<tr style="">
<td id="x_gmail-m_-2011678791439427984gmail-L84" class="x_gmail-m_-2011678791439427984gmail-blob-num x_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="x_gmail-m_-2011678791439427984gmail-LC84" class="x_gmail-m_-2011678791439427984gmail-blob-code x_gmail-m_-2011678791439427984gmail-blob-code-inner x_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 style="">
<td id="x_gmail-m_-2011678791439427984gmail-L85" class="x_gmail-m_-2011678791439427984gmail-blob-num x_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="x_gmail-m_-2011678791439427984gmail-LC85" class="x_gmail-m_-2011678791439427984gmail-blob-code x_gmail-m_-2011678791439427984gmail-blob-code-inner x_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="x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="x_gmail-m_-2011678791439427984gmail-pl-c" style="">//</span> Expectation:</span></td>
</tr>
<tr style="">
<td id="x_gmail-m_-2011678791439427984gmail-L86" class="x_gmail-m_-2011678791439427984gmail-blob-num x_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="x_gmail-m_-2011678791439427984gmail-LC86" class="x_gmail-m_-2011678791439427984gmail-blob-code x_gmail-m_-2011678791439427984gmail-blob-code-inner x_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="x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="x_gmail-m_-2011678791439427984gmail-pl-c" style="">//</span> Interests from 1, 3 and 4 will reach producers</span></td>
</tr>
<tr style="">
<td id="x_gmail-m_-2011678791439427984gmail-L87" class="x_gmail-m_-2011678791439427984gmail-blob-num x_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="x_gmail-m_-2011678791439427984gmail-LC87" class="x_gmail-m_-2011678791439427984gmail-blob-code x_gmail-m_-2011678791439427984gmail-blob-code-inner x_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="x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="x_gmail-m_-2011678791439427984gmail-pl-c" style="">//</span> Interset from 2 will be served from cache</span></td>
</tr>
<tr style="">
<td id="x_gmail-m_-2011678791439427984gmail-L88" class="x_gmail-m_-2011678791439427984gmail-blob-num x_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="x_gmail-m_-2011678791439427984gmail-LC88" class="x_gmail-m_-2011678791439427984gmail-blob-code x_gmail-m_-2011678791439427984gmail-blob-code-inner x_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="x_gmail-m_-2011678791439427984gmail-pl-c" style="color:rgb(106,115,125)"><span class="x_gmail-m_-2011678791439427984gmail-pl-c" style="">//</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="x_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>
</body>
</html>