<html><body>
<div style="font-size: 13.3333px; font-family: tahoma; color: rgb(0, 0, 0); 
font-weight: 400; font-style: normal; background: none 0% 0% / auto repeat 
scroll padding-box border-box rgba(0, 0, 0, 0);">The freshness attribute of 
Producer app is used for this purpose. Please see all the attributes 
here </div>

<div style="font-size: 13.3333px; font-family: tahoma; color: rgb(0, 0, 0); 
font-weight: 400; font-style: normal; background: none 0% 0% / auto repeat 
scroll padding-box border-box rgba(0, 0, 0, 0);"><span style="font-size: 
13.3333px;">https://ndnsim.net/2.1/doxygen/AttributeList.html</span></div>

<div style="font-size: 13.3333px; font-family: tahoma; color: rgb(0, 0, 0); 
font-weight: 400; font-style: normal; background: none 0% 0% / auto repeat 
scroll padding-box border-box rgba(0, 0, 0, 0);"> </div>

<div style="font-size: 13.3333px; font-family: tahoma; color: rgb(0, 0, 0); 
font-weight: 400; font-style: normal; background: none 0% 0% / auto repeat 
scroll padding-box border-box rgba(0, 0, 0, 0);"><span style="font-size: 
13.3333px;">It can</span><span style="font-size: 10pt;">
 be used</span> as </div>

<div style="font-size: 13.3333px; font-family: tahoma; color: rgb(0, 0, 0); 
font-weight: 400; font-style: normal; background: none 0% 0% / auto repeat 
scroll padding-box border-box rgba(0, 0, 0, 0);">
ndn::AppHelper producerHelper("ns3::ndn::Producer");</div>

<div style="font-size: 13.3333px; font-family: tahoma; color: rgb(0, 0, 0); 
font-weight: 400; font-style: normal; background: none 0% 0% / auto repeat 
scroll padding-box border-box rgba(0, 0, 0, 0);">
producerHelper.SetAttribute("Freshness", 
TimeValue(Seconds(5))); </div>

<div style="font-size: 13.3333px; font-family: tahoma; color: rgb(0, 0, 0); 
font-weight: 400; font-style: normal; background: none 0% 0% / auto repeat 
scroll padding-box border-box rgba(0, 0, 0, 0);"> </div>

<div style="font-size: 13.3333px; font-family: tahoma; color: rgb(0, 0, 0); 
font-weight: 400; font-style: normal; background: none 0% 0% / auto repeat 
scroll padding-box border-box rgba(0, 0, 0, 0);">It sets the life time of 
each data packet to 5 seconds.</div>

<div style="font-size: 13.3333px; font-family: tahoma; color: rgb(0, 0, 0); 
font-weight: 400; font-style: normal; background: none 0% 0% / auto repeat 
scroll padding-box border-box rgba(0, 0, 0, 0);"> </div>

<div style="font-size: 13.3333px; font-family: tahoma; color: rgb(0, 0, 0); 
font-weight: 400; font-style: normal; background: none 0% 0% / auto repeat 
scroll padding-box border-box rgba(0, 0, 0, 0);">Also if you want to use it 
in your own custom app, please see line 83 in the example:<code 
class="docutils literal" style="font-size: 14.6667px; text-align: justify; 
background-color: rgb(255, 255, 255);"><span class="pre" style="hyphens: 
none;">examples/ndn-custom-apps/custom-app.cpp</span></code><span 
style="font-family: "Lucida Grande", Verdana, Geneva, Arial, 
sans-serif; font-size: 14.6667px; text-align: justify; background-color: 
rgb(255, 255, 255);"> in this link (</span><span style="font-size: 
13.3333px;">http://ndnsim.net/current/applications.html</span><span 
style="font-family: "Lucida Grande", Verdana, Geneva, Arial, 
sans-serif; font-size: 14.6667px; text-align: justify; background-color: 
rgb(255, 255, 255);">)</span></div>

<div style="font-size: 13.3333px; font-family: tahoma; color: rgb(0, 0, 0); 
font-weight: 400; font-style: normal; background: none 0% 0% / auto repeat 
scroll padding-box border-box rgba(0, 0, 0, 0);">
<pre style="overflow-x: auto; overflow-y: hidden; padding: 5px; line-height: 
14.4px; border-top: 1px solid rgb(170, 204, 153); border-bottom: 1px solid 
rgb(170, 204, 153); border-image: initial; border-left: none; border-right: 
none; font-size: 12px;">
<span class="k" style="color: rgb(0, 112, 32); font-weight: bold;">
auto</span> <span class="n">data</span> <span class="o" style="color: 
rgb(102, 102, 102);">=</span> <span class="n">std</span><span class="o" 
style="color: rgb(102, 102, 102);">::</span><span class="n">
make_shared</span><span class="o" style="color: rgb(102, 102, 102);">
<</span><span class="n">ndn</span><span class="o" style="color: rgb(102, 
102, 102);">::</span><span class="n">Data</span><span class="o" 
style="color: rgb(102, 102, 102);">></span><span class="p">(</span><span 
class="n">interest</span><span class="o" style="color: rgb(102, 102, 102);">
-></span><span class="n">getName</span><span class="p">());</span>
  <span class="n">data</span><span class="o" style="color: rgb(102, 102, 
102);">-></span><span class="n">setFreshnessPeriod</span><span class="p">
(</span><span class="n">ndn</span><span class="o" style="color: rgb(102, 
102, 102);">::</span><span class="n">time</span><span class="o" 
style="color: rgb(102, 102, 102);">::</span><span class="n">
milliseconds</span><span class="p">(</span><span class="mi" style="color: 
rgb(32, 128, 80);">1000</span><span class="p">));</span></pre>
Hope it will help you. Thanks</div>

<div style="font-family: tahoma; color: rgb(0, 0, 0); font-size: 13.3333px; 
font-weight: 400; font-style: normal; background: none 0% 0% / auto repeat 
scroll padding-box border-box rgba(0, 0, 0, 0);"> 
<blockquote style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; 
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">-----Original 
Message-----<br />
From: "dystopia_P" <409967734@qq.com><br />
To: "ndnsim" <ndnsim@lists.cs.ucla.edu><br />
Date: Tue, 3 Apr 2018 19:05:36 +0800<br />
Subject: [ndnSIM] How can i get and change CS lifetime<br />
 
<pre>
<i>Hi all,</i><i>
</i><i>Really happy to join the ndnSIM mailing list.
</i><i>It's my honour to discuss some problems with you.</i><i>
</i><i>Hope everyone have fun with ndnSIM.
</i><i>I have some problems in my reserch about NDNsim.</i></pre>

<pre>
<i>In ordinary circumstances,every data packet will be cached in CS .And 
each of them has a lifetime.</i></pre>

<pre>
<i>how can i get or set lifetime of each data packet in CS?</i></pre>

<pre>
<i>i can't find any </i></pre>

<pre>
<i>Best regards,
</i><i>Tendo</i></pre>

<pre>

 </pre>
</blockquote>
</div>
</body></html>