<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>DTN Reference Implementation: dtn::ExpirationTimer Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespacedtn.html">dtn</a>::<a class="el" href="classdtn_1_1ExpirationTimer.html">ExpirationTimer</a> </div> </div> <div class="contents"> <h1>dtn::ExpirationTimer Class Reference</h1><!-- doxytag: class="dtn::ExpirationTimer" --><code>#include <<a class="el" href="ExpirationTimer_8h-source.html">ExpirationTimer.h</a>></code> <p> <p> <a href="classdtn_1_1ExpirationTimer-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> <a class="el" href="classdtn_1_1Bundle.html" title="The internal representation of a bundle.">Bundle</a> expiration timer class. <p> The timer is started when the bundle first arrives at the daemon, and is cancelled when the daemon removes it from the pending list. <p>Definition at line <a class="el" href="ExpirationTimer_8h-source.html#l00032">32</a> of file <a class="el" href="ExpirationTimer_8h-source.html">ExpirationTimer.h</a>.</p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1ExpirationTimer.html#9b9ab74b31692b19bdb65ebc020d1532">ExpirationTimer</a> (<a class="el" href="classdtn_1_1Bundle.html">Bundle</a> *bundle)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1ExpirationTimer.html#4909da99661021d082f58d7b211a277a">~ExpirationTimer</a> ()</td></tr> <tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespacedtn.html#87094f3b26b9f1d469e616d311ae57b1">BundleRef</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1ExpirationTimer.html#0bd16c2936ef47811cb0aed1664d9c0c">bundleref_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The reference to the bundle, which is public since. <a href="#0bd16c2936ef47811cb0aed1664d9c0c"></a><br></td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1ExpirationTimer.html#4e3809787b1b460337b22ac891804881">timeout</a> (const struct timeval &now)</td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="9b9ab74b31692b19bdb65ebc020d1532"></a><!-- doxytag: member="dtn::ExpirationTimer::ExpirationTimer" ref="9b9ab74b31692b19bdb65ebc020d1532" args="(Bundle *bundle)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">dtn::ExpirationTimer::ExpirationTimer </td> <td>(</td> <td class="paramtype"><a class="el" href="classdtn_1_1Bundle.html">Bundle</a> * </td> <td class="paramname"> <em>bundle</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="ExpirationTimer_8cc-source.html#l00027">27</a> of file <a class="el" href="ExpirationTimer_8cc-source.html">ExpirationTimer.cc</a>.</p> </div> </div><p> <a class="anchor" name="4909da99661021d082f58d7b211a277a"></a><!-- doxytag: member="dtn::ExpirationTimer::~ExpirationTimer" ref="4909da99661021d082f58d7b211a277a" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual dtn::ExpirationTimer::~ExpirationTimer </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="ExpirationTimer_8h-source.html#l00036">36</a> of file <a class="el" href="ExpirationTimer_8h-source.html">ExpirationTimer.h</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="4e3809787b1b460337b22ac891804881"></a><!-- doxytag: member="dtn::ExpirationTimer::timeout" ref="4e3809787b1b460337b22ac891804881" args="(const struct timeval &now)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void dtn::ExpirationTimer::timeout </td> <td>(</td> <td class="paramtype">const struct timeval & </td> <td class="paramname"> <em>now</em> </td> <td> ) </td> <td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="ExpirationTimer_8cc-source.html#l00033">33</a> of file <a class="el" href="ExpirationTimer_8cc-source.html">ExpirationTimer.cc</a>.</p> <p>References <a class="el" href="ExpirationTimer_8h-source.html#l00039">bundleref_</a>, and <a class="el" href="BundleDaemon_8cc-source.html#l00141">dtn::BundleDaemon::post_at_head()</a>.</p> </div> </div><p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="0bd16c2936ef47811cb0aed1664d9c0c"></a><!-- doxytag: member="dtn::ExpirationTimer::bundleref_" ref="0bd16c2936ef47811cb0aed1664d9c0c" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="namespacedtn.html#87094f3b26b9f1d469e616d311ae57b1">BundleRef</a> <a class="el" href="classdtn_1_1ExpirationTimer.html#0bd16c2936ef47811cb0aed1664d9c0c">dtn::ExpirationTimer::bundleref_</a> </td> </tr> </table> </div> <div class="memdoc"> <p> The reference to the bundle, which is public since. <p> <p>Definition at line <a class="el" href="ExpirationTimer_8h-source.html#l00039">39</a> of file <a class="el" href="ExpirationTimer_8h-source.html">ExpirationTimer.h</a>.</p> <p>Referenced by <a class="el" href="ExpirationTimer_8cc-source.html#l00033">timeout()</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="ExpirationTimer_8h-source.html">ExpirationTimer.h</a><li><a class="el" href="ExpirationTimer_8cc-source.html">ExpirationTimer.cc</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Mon Jul 21 14:09:51 2008 for DTN Reference Implementation by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>