<!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: prophet::ResponseTLV 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="namespaceprophet.html">prophet</a>::<a class="el" href="classprophet_1_1ResponseTLV.html">ResponseTLV</a> </div> </div> <div class="contents"> <h1>prophet::ResponseTLV Class Reference</h1><!-- doxytag: class="prophet::ResponseTLV" --><!-- doxytag: inherits="prophet::BundleTLV" --><code>#include <<a class="el" href="ResponseTLV_8h-source.html">ResponseTLV.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for prophet::ResponseTLV:</div> <div class="dynsection"> <p><center><img src="classprophet_1_1ResponseTLV.png" usemap="#prophet::ResponseTLV_map" border="0" alt=""></center> <map name="prophet::ResponseTLV_map"> <area href="classprophet_1_1BundleTLV.html" alt="prophet::BundleTLV" shape="rect" coords="0,56,139,80"> <area href="classprophet_1_1BaseTLV.html" alt="prophet::BaseTLV" shape="rect" coords="0,0,139,24"> </map> </div> <p> <a href="classprophet_1_1ResponseTLV-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> <p>Definition at line <a class="el" href="ResponseTLV_8h-source.html#l00027">27</a> of file <a class="el" href="ResponseTLV_8h-source.html">ResponseTLV.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="classprophet_1_1ResponseTLV.html#8bc1b2c10a5f30f8aaf3b3f50bd560b2">ResponseTLV</a> (const <a class="el" href="classprophet_1_1BundleResponseList.html">BundleResponseList</a> &list)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#8bc1b2c10a5f30f8aaf3b3f50bd560b2"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1ResponseTLV.html#6bd1c2a12b457538f0c3eb83170a4086">~ResponseTLV</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#6bd1c2a12b457538f0c3eb83170a4086"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1ResponseTLV.html#547a6db2abc38e7a5b7465b83f524966">serialize</a> (u_char *bp, size_t len) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Virtual from <a class="el" href="classprophet_1_1BaseTLV.html" title="The Prophet I-D (March 2006) dictates five bytecodes for router state exchange messages...">BaseTLV</a>. <a href="#547a6db2abc38e7a5b7465b83f524966"></a><br></td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classprophet_1_1BundleResponseList.html">BundleResponseList</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1ResponseTLV.html#e661376ffc2ba4afb996a1925b3e2426">list</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Accessors. <a href="#e661376ffc2ba4afb996a1925b3e2426"></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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1ResponseTLV.html#07f1b18a22e4a75776c6f098ef2dc9ea">ResponseTLV</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#07f1b18a22e4a75776c6f098ef2dc9ea"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1ResponseTLV.html#4ebb2b665c2708911b6a83df20717164">deserialize</a> (const u_char *bp, size_t len)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Virtual from <a class="el" href="classprophet_1_1BaseTLV.html" title="The Prophet I-D (March 2006) dictates five bytecodes for router state exchange messages...">BaseTLV</a>. <a href="#4ebb2b665c2708911b6a83df20717164"></a><br></td></tr> <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classprophet_1_1BundleResponseList.html">BundleResponseList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1ResponseTLV.html#2095ca1150778670babbbce1c56f9724">list_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Priority sorted list of Bundles to request from peer. <a href="#2095ca1150778670babbbce1c56f9724"></a><br></td></tr> <tr><td colspan="2"><br><h2>Friends</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classprophet_1_1ResponseTLV.html#a7b858ef4c9684b1fc45add00a51b5fc">TLVFactory< ResponseTLV ></a></td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="8bc1b2c10a5f30f8aaf3b3f50bd560b2"></a><!-- doxytag: member="prophet::ResponseTLV::ResponseTLV" ref="8bc1b2c10a5f30f8aaf3b3f50bd560b2" args="(const BundleResponseList &list)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">prophet::ResponseTLV::ResponseTLV </td> <td>(</td> <td class="paramtype">const <a class="el" href="classprophet_1_1BundleResponseList.html">BundleResponseList</a> & </td> <td class="paramname"> <em>list</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Constructor. <p> <p>Definition at line <a class="el" href="ResponseTLV_8cc-source.html#l00026">26</a> of file <a class="el" href="ResponseTLV_8cc-source.html">ResponseTLV.cc</a>.</p> </div> </div><p> <a class="anchor" name="6bd1c2a12b457538f0c3eb83170a4086"></a><!-- doxytag: member="prophet::ResponseTLV::~ResponseTLV" ref="6bd1c2a12b457538f0c3eb83170a4086" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual prophet::ResponseTLV::~ResponseTLV </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Destructor. <p> <p>Definition at line <a class="el" href="ResponseTLV_8h-source.html#l00038">38</a> of file <a class="el" href="ResponseTLV_8h-source.html">ResponseTLV.h</a>.</p> </div> </div><p> <a class="anchor" name="07f1b18a22e4a75776c6f098ef2dc9ea"></a><!-- doxytag: member="prophet::ResponseTLV::ResponseTLV" ref="07f1b18a22e4a75776c6f098ef2dc9ea" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">prophet::ResponseTLV::ResponseTLV </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Constructor. <p> Protected to force access through <a class="el" href="structprophet_1_1TLVFactory.html">TLVFactory</a>. <p>Definition at line <a class="el" href="ResponseTLV_8cc-source.html#l00023">23</a> of file <a class="el" href="ResponseTLV_8cc-source.html">ResponseTLV.cc</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="547a6db2abc38e7a5b7465b83f524966"></a><!-- doxytag: member="prophet::ResponseTLV::serialize" ref="547a6db2abc38e7a5b7465b83f524966" args="(u_char *bp, size_t len) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">size_t prophet::ResponseTLV::serialize </td> <td>(</td> <td class="paramtype">u_char * </td> <td class="paramname"> <em>bp</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>len</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Virtual from <a class="el" href="classprophet_1_1BaseTLV.html" title="The Prophet I-D (March 2006) dictates five bytecodes for router state exchange messages...">BaseTLV</a>. <p> <p>Implements <a class="el" href="classprophet_1_1BaseTLV.html#18534e5841ee8447ca2c51cf299becd0">prophet::BaseTLV</a>.</p> <p>Definition at line <a class="el" href="ResponseTLV_8cc-source.html#l00031">31</a> of file <a class="el" href="ResponseTLV_8cc-source.html">ResponseTLV.cc</a>.</p> <p>References <a class="el" href="BundleTLVEntry_8h-source.html#l00139">prophet::BundleTLVEntry::accept()</a>, <a class="el" href="BundleTLVEntry_8h-source.html#l00140">prophet::BundleTLVEntry::ack()</a>, <a class="el" href="BundleTLVEntryList_8h-source.html#l00142">prophet::BundleEntryList< BundleEntryType >::begin()</a>, <a class="el" href="BundleTLV_8h-source.html#l00116">prophet::BundleTLV::BundleEntrySize</a>, <a class="el" href="BundleTLV_8h-source.html#l00114">prophet::BundleTLV::BundleTLVHeaderSize</a>, <a class="el" href="BundleTLVEntry_8h-source.html#l00135">prophet::BundleTLVEntry::creation_ts()</a>, <a class="el" href="BundleTLVEntry_8h-source.html#l00138">prophet::BundleTLVEntry::custody()</a>, <a class="el" href="BundleTLVEntryList_8h-source.html#l00143">prophet::BundleEntryList< BundleEntryType >::end()</a>, <a class="el" href="BundleTLV_8h-source.html#l00051">prophet::BundleTLV::BundleTLVHeader::flags</a>, <a class="el" href="BundleTLVEntryList_8h-source.html#l00161">prophet::BundleEntryList< BundleEntryType >::guess_size()</a>, <a class="el" href="BundleTLV_8h-source.html#l00056">prophet::BundleTLV::BundleTLVHeader::length</a>, <a class="el" href="BaseTLV_8h-source.html#l00127">prophet::BaseTLV::length_</a>, <a class="el" href="ResponseTLV_8h-source.html#l00062">list_</a>, <a class="el" href="BundleTLV_8h-source.html#l00060">prophet::BundleTLV::BundleTLVHeader::offer_count</a>, <a class="el" href="BaseTLV_8h-source.html#l00071">prophet::BaseTLV::RESPONSE_TLV</a>, <a class="el" href="BundleTLVEntry_8h-source.html#l00136">prophet::BundleTLVEntry::seqno()</a>, <a class="el" href="BundleTLVEntry_8h-source.html#l00137">prophet::BundleTLVEntry::sid()</a>, <a class="el" href="BundleTLVEntryList_8h-source.html#l00066">prophet::BundleEntryList< BundleEntryType >::size()</a>, <a class="el" href="BundleTLVEntry_8h-source.html#l00141">prophet::BundleTLVEntry::type()</a>, <a class="el" href="BundleTLV_8h-source.html#l00050">prophet::BundleTLV::BundleTLVHeader::type</a>, <a class="el" href="BaseTLV_8h-source.html#l00125">prophet::BaseTLV::typecode_</a>, and <a class="el" href="BundleTLV_8cc-source.html#l00023">prophet::BundleTLV::write_bundle_entry()</a>.</p> </div> </div><p> <a class="anchor" name="e661376ffc2ba4afb996a1925b3e2426"></a><!-- doxytag: member="prophet::ResponseTLV::list" ref="e661376ffc2ba4afb996a1925b3e2426" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classprophet_1_1BundleResponseList.html">BundleResponseList</a>& prophet::ResponseTLV::list </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Accessors. <p> <p>Definition at line <a class="el" href="ResponseTLV_8h-source.html#l00046">46</a> of file <a class="el" href="ResponseTLV_8h-source.html">ResponseTLV.h</a>.</p> <p>References <a class="el" href="ResponseTLV_8h-source.html#l00062">list_</a>.</p> </div> </div><p> <a class="anchor" name="4ebb2b665c2708911b6a83df20717164"></a><!-- doxytag: member="prophet::ResponseTLV::deserialize" ref="4ebb2b665c2708911b6a83df20717164" args="(const u_char *bp, size_t len)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> prophet::ResponseTLV::deserialize </td> <td>(</td> <td class="paramtype">const u_char * </td> <td class="paramname"> <em>bp</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>len</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Virtual from <a class="el" href="classprophet_1_1BaseTLV.html" title="The Prophet I-D (March 2006) dictates five bytecodes for router state exchange messages...">BaseTLV</a>. <p> <p>Implements <a class="el" href="classprophet_1_1BaseTLV.html#39a29c35a775a408b165921f61beec2d">prophet::BaseTLV</a>.</p> <p>Definition at line <a class="el" href="ResponseTLV_8cc-source.html#l00080">80</a> of file <a class="el" href="ResponseTLV_8cc-source.html">ResponseTLV.cc</a>.</p> <p>References <a class="el" href="BundleTLVEntryList_8h-source.html#l00298">prophet::BundleResponseList::add_response()</a>, <a class="el" href="BundleTLV_8h-source.html#l00116">prophet::BundleTLV::BundleEntrySize</a>, <a class="el" href="BundleTLV_8h-source.html#l00114">prophet::BundleTLV::BundleTLVHeaderSize</a>, <a class="el" href="dtncat_8c-source.html#l00052">custody</a>, <a class="el" href="BundleTLVEntryList_8h-source.html#l00071">prophet::BundleEntryList< BundleEntryType >::empty()</a>, <a class="el" href="BundleTLV_8h-source.html#l00051">prophet::BundleTLV::BundleTLVHeader::flags</a>, <a class="el" href="BaseTLV_8h-source.html#l00126">prophet::BaseTLV::flags_</a>, <a class="el" href="BundleTLV_8h-source.html#l00056">prophet::BundleTLV::BundleTLVHeader::length</a>, <a class="el" href="BaseTLV_8h-source.html#l00127">prophet::BaseTLV::length_</a>, <a class="el" href="ResponseTLV_8h-source.html#l00062">list_</a>, <a class="el" href="BundleTLV_8h-source.html#l00060">prophet::BundleTLV::BundleTLVHeader::offer_count</a>, <a class="el" href="BundleTLV_8cc-source.html#l00049">prophet::BundleTLV::read_bundle_entry()</a>, <a class="el" href="BundleTLVEntry_8h-source.html#l00042">prophet::BundleTLVEntry::RESPONSE</a>, <a class="el" href="BaseTLV_8h-source.html#l00071">prophet::BaseTLV::RESPONSE_TLV</a>, <a class="el" href="BundleTLV_8h-source.html#l00050">prophet::BundleTLV::BundleTLVHeader::type</a>, <a class="el" href="BaseTLV_8h-source.html#l00125">prophet::BaseTLV::typecode_</a>, and <a class="el" href="BundleTLVEntry_8h-source.html#l00040">prophet::BundleTLVEntry::UNDEFINED</a>.</p> </div> </div><p> <hr><h2>Friends And Related Function Documentation</h2> <a class="anchor" name="a7b858ef4c9684b1fc45add00a51b5fc"></a><!-- doxytag: member="prophet::ResponseTLV::TLVFactory< ResponseTLV >" ref="a7b858ef4c9684b1fc45add00a51b5fc" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">friend class <a class="el" href="structprophet_1_1TLVFactory.html">TLVFactory</a>< <a class="el" href="classprophet_1_1ResponseTLV.html">ResponseTLV</a> ><code> [friend]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="ResponseTLV_8h-source.html#l00050">50</a> of file <a class="el" href="ResponseTLV_8h-source.html">ResponseTLV.h</a>.</p> </div> </div><p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="2095ca1150778670babbbce1c56f9724"></a><!-- doxytag: member="prophet::ResponseTLV::list_" ref="2095ca1150778670babbbce1c56f9724" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classprophet_1_1BundleResponseList.html">BundleResponseList</a> <a class="el" href="classprophet_1_1ResponseTLV.html#2095ca1150778670babbbce1c56f9724">prophet::ResponseTLV::list_</a><code> [protected]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> Priority sorted list of Bundles to request from peer. <p> <p>Definition at line <a class="el" href="ResponseTLV_8h-source.html#l00062">62</a> of file <a class="el" href="ResponseTLV_8h-source.html">ResponseTLV.h</a>.</p> <p>Referenced by <a class="el" href="ResponseTLV_8cc-source.html#l00080">deserialize()</a>, <a class="el" href="ResponseTLV_8h-source.html#l00046">list()</a>, and <a class="el" href="ResponseTLV_8cc-source.html#l00031">serialize()</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="ResponseTLV_8h-source.html">ResponseTLV.h</a><li><a class="el" href="ResponseTLV_8cc-source.html">ResponseTLV.cc</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Mon Jul 21 14:09:56 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>