<!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::SessionBlockProcessor 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_1SessionBlockProcessor.html">SessionBlockProcessor</a> </div> </div> <div class="contents"> <h1>dtn::SessionBlockProcessor Class Reference</h1><!-- doxytag: class="dtn::SessionBlockProcessor" --><!-- doxytag: inherits="dtn::BlockProcessor" --><code>#include <<a class="el" href="SessionBlockProcessor_8h-source.html">SessionBlockProcessor.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for dtn::SessionBlockProcessor:</div> <div class="dynsection"> <p><center><img src="classdtn_1_1SessionBlockProcessor.png" usemap="#dtn::SessionBlockProcessor_map" border="0" alt=""></center> <map name="dtn::SessionBlockProcessor_map"> <area href="classdtn_1_1BlockProcessor.html" alt="dtn::BlockProcessor" shape="rect" coords="0,0,168,24"> </map> </div> <p> <a href="classdtn_1_1SessionBlockProcessor-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> Block processor implementation for session blocks. <p>Definition at line <a class="el" href="SessionBlockProcessor_8h-source.html#l00027">27</a> of file <a class="el" href="SessionBlockProcessor_8h-source.html">SessionBlockProcessor.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_1SessionBlockProcessor.html#6250676d18d6c60aabe6a18582f44810">SessionBlockProcessor</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#6250676d18d6c60aabe6a18582f44810"></a><br></td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1SessionBlockProcessor.html#11e5c11d9bf92e47f70b9a4798b82b01">prepare</a> (const <a class="el" href="classdtn_1_1Bundle.html">Bundle</a> *bundle, <a class="el" href="classdtn_1_1BlockInfoVec.html">BlockInfoVec</a> *xmit_blocks, const <a class="el" href="classdtn_1_1BlockInfo.html">BlockInfo</a> *source, const <a class="el" href="namespacedtn.html#6efb37e503f8062c537b022eb755b94e">LinkRef</a> &link, <a class="el" href="classdtn_1_1BlockInfo.html#3d0bc8cd207912ac5406fde3fc2c8d1c">BlockInfo::list_owner_t</a> list)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Virtual from <a class="el" href="classdtn_1_1BlockProcessor.html" title="Base class for the protocol handling of bundle blocks, including the core primary...">BlockProcessor</a>. <a href="#11e5c11d9bf92e47f70b9a4798b82b01"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1SessionBlockProcessor.html#7c1a00550f5109a7dd09a6f018bed4eb">generate</a> (const <a class="el" href="classdtn_1_1Bundle.html">Bundle</a> *bundle, <a class="el" href="classdtn_1_1BlockInfoVec.html">BlockInfoVec</a> *xmit_blocks, <a class="el" href="classdtn_1_1BlockInfo.html">BlockInfo</a> *block, const <a class="el" href="namespacedtn.html#6efb37e503f8062c537b022eb755b94e">LinkRef</a> &link, <a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> last)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Virtual from <a class="el" href="classdtn_1_1BlockProcessor.html" title="Base class for the protocol handling of bundle blocks, including the core primary...">BlockProcessor</a>. <a href="#7c1a00550f5109a7dd09a6f018bed4eb"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1SessionBlockProcessor.html#5a0b9377c4f3339154f92ed9bc27e4c7">consume</a> (<a class="el" href="classdtn_1_1Bundle.html">Bundle</a> *bundle, <a class="el" href="classdtn_1_1BlockInfo.html">BlockInfo</a> *block, u_char *<a class="el" href="num2sdnv_8c.html#a81cdcc7ff6987bc85c073253e32715f">buf</a>, size_t len)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Virtual from <a class="el" href="classdtn_1_1BlockProcessor.html" title="Base class for the protocol handling of bundle blocks, including the core primary...">BlockProcessor</a>. <a href="#5a0b9377c4f3339154f92ed9bc27e4c7"></a><br></td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="6250676d18d6c60aabe6a18582f44810"></a><!-- doxytag: member="dtn::SessionBlockProcessor::SessionBlockProcessor" ref="6250676d18d6c60aabe6a18582f44810" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">dtn::SessionBlockProcessor::SessionBlockProcessor </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Constructor. <p> <p>Definition at line <a class="el" href="SessionBlockProcessor_8cc-source.html#l00030">30</a> of file <a class="el" href="SessionBlockProcessor_8cc-source.html">SessionBlockProcessor.cc</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="11e5c11d9bf92e47f70b9a4798b82b01"></a><!-- doxytag: member="dtn::SessionBlockProcessor::prepare" ref="11e5c11d9bf92e47f70b9a4798b82b01" args="(const Bundle *bundle, BlockInfoVec *xmit_blocks, const BlockInfo *source, const LinkRef &link, BlockInfo::list_owner_t list)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int dtn::SessionBlockProcessor::prepare </td> <td>(</td> <td class="paramtype">const <a class="el" href="classdtn_1_1Bundle.html">Bundle</a> * </td> <td class="paramname"> <em>bundle</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classdtn_1_1BlockInfoVec.html">BlockInfoVec</a> * </td> <td class="paramname"> <em>xmit_blocks</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classdtn_1_1BlockInfo.html">BlockInfo</a> * </td> <td class="paramname"> <em>source</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="namespacedtn.html#6efb37e503f8062c537b022eb755b94e">LinkRef</a> & </td> <td class="paramname"> <em>link</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classdtn_1_1BlockInfo.html#3d0bc8cd207912ac5406fde3fc2c8d1c">BlockInfo::list_owner_t</a> </td> <td class="paramname"> <em>list</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Virtual from <a class="el" href="classdtn_1_1BlockProcessor.html" title="Base class for the protocol handling of bundle blocks, including the core primary...">BlockProcessor</a>. <p> <p>Reimplemented from <a class="el" href="classdtn_1_1BlockProcessor.html#f7c21ecdcbbb4f2060c7f5f865415c48">dtn::BlockProcessor</a>.</p> <p>Definition at line <a class="el" href="SessionBlockProcessor_8cc-source.html#l00037">37</a> of file <a class="el" href="SessionBlockProcessor_8cc-source.html">SessionBlockProcessor.cc</a>.</p> <p>References <a class="el" href="SDNV_8cc-source.html#l00044">ASSERT</a>, <a class="el" href="BlockProcessor_8h-source.html#l00034">BP_SUCCESS</a>, <a class="el" href="EndpointID_8h-source.html#l00266">dtn::EndpointID::length()</a>, <a class="el" href="EndpointID_8h-source.html#l00358">dtn::EndpointID::NULL_EID()</a>, <a class="el" href="BlockProcessor_8cc-source.html#l00406">dtn::BlockProcessor::prepare()</a>, and <a class="el" href="bundling_2Bundle_8h-source.html#l00230">dtn::Bundle::session_eid()</a>.</p> </div> </div><p> <a class="anchor" name="7c1a00550f5109a7dd09a6f018bed4eb"></a><!-- doxytag: member="dtn::SessionBlockProcessor::generate" ref="7c1a00550f5109a7dd09a6f018bed4eb" args="(const Bundle *bundle, BlockInfoVec *xmit_blocks, BlockInfo *block, const LinkRef &link, bool last)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int dtn::SessionBlockProcessor::generate </td> <td>(</td> <td class="paramtype">const <a class="el" href="classdtn_1_1Bundle.html">Bundle</a> * </td> <td class="paramname"> <em>bundle</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classdtn_1_1BlockInfoVec.html">BlockInfoVec</a> * </td> <td class="paramname"> <em>xmit_blocks</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classdtn_1_1BlockInfo.html">BlockInfo</a> * </td> <td class="paramname"> <em>block</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="namespacedtn.html#6efb37e503f8062c537b022eb755b94e">LinkRef</a> & </td> <td class="paramname"> <em>link</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> </td> <td class="paramname"> <em>last</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Virtual from <a class="el" href="classdtn_1_1BlockProcessor.html" title="Base class for the protocol handling of bundle blocks, including the core primary...">BlockProcessor</a>. <p> <p>Implements <a class="el" href="classdtn_1_1BlockProcessor.html#93079be0f3f307ae9a800106a9518f3e">dtn::BlockProcessor</a>.</p> <p>Definition at line <a class="el" href="SessionBlockProcessor_8cc-source.html#l00054">54</a> of file <a class="el" href="SessionBlockProcessor_8cc-source.html">SessionBlockProcessor.cc</a>.</p> <p>References <a class="el" href="BlockInfo_8h-source.html#l00096">dtn::BlockInfo::add_eid()</a>, <a class="el" href="SDNV_8cc-source.html#l00044">ASSERT</a>, <a class="el" href="BundleProtocol_8h-source.html#l00198">dtn::BundleProtocol::BLOCK_FLAG_DISCARD_BUNDLE_ONERROR</a>, <a class="el" href="BundleProtocol_8h-source.html#l00199">dtn::BundleProtocol::BLOCK_FLAG_LAST_BLOCK</a>, <a class="el" href="BundleProtocol_8h-source.html#l00197">dtn::BundleProtocol::BLOCK_FLAG_REPORT_ONERROR</a>, <a class="el" href="BlockProcessor_8h-source.html#l00034">BP_SUCCESS</a>, <a class="el" href="BlockInfo_8h-source.html#l00078">dtn::BlockInfo::data_offset()</a>, <a class="el" href="BlockProcessor_8cc-source.html#l00206">dtn::BlockProcessor::generate_preamble()</a>, <a class="el" href="EndpointID_8h-source.html#l00266">dtn::EndpointID::length()</a>, <a class="el" href="BundleProtocol_8h-source.html#l00184">dtn::BundleProtocol::SESSION_BLOCK</a>, <a class="el" href="bundling_2Bundle_8h-source.html#l00230">dtn::Bundle::session_eid()</a>, <a class="el" href="bundling_2Bundle_8h-source.html#l00231">dtn::Bundle::session_flags()</a>, and <a class="el" href="BlockInfo_8h-source.html#l00094">dtn::BlockInfo::writable_contents()</a>.</p> </div> </div><p> <a class="anchor" name="5a0b9377c4f3339154f92ed9bc27e4c7"></a><!-- doxytag: member="dtn::SessionBlockProcessor::consume" ref="5a0b9377c4f3339154f92ed9bc27e4c7" args="(Bundle *bundle, BlockInfo *block, u_char *buf, size_t len)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int dtn::SessionBlockProcessor::consume </td> <td>(</td> <td class="paramtype"><a class="el" href="classdtn_1_1Bundle.html">Bundle</a> * </td> <td class="paramname"> <em>bundle</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classdtn_1_1BlockInfo.html">BlockInfo</a> * </td> <td class="paramname"> <em>block</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">u_char * </td> <td class="paramname"> <em>buf</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> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Virtual from <a class="el" href="classdtn_1_1BlockProcessor.html" title="Base class for the protocol handling of bundle blocks, including the core primary...">BlockProcessor</a>. <p> <p>Reimplemented from <a class="el" href="classdtn_1_1BlockProcessor.html#1f73d119593ef13da9c5ee845fd5ec00">dtn::BlockProcessor</a>.</p> <p>Definition at line <a class="el" href="SessionBlockProcessor_8cc-source.html#l00087">87</a> of file <a class="el" href="SessionBlockProcessor_8cc-source.html">SessionBlockProcessor.cc</a>.</p> <p>References <a class="el" href="SDNV_8cc-source.html#l00044">ASSERT</a>, <a class="el" href="EndpointID_8h-source.html#l00084">dtn::EndpointID::assign()</a>, <a class="el" href="BlockInfo_8h-source.html#l00083">dtn::BlockInfo::complete()</a>, <a class="el" href="BlockProcessor_8cc-source.html#l00284">dtn::BlockProcessor::consume()</a>, <a class="el" href="BlockInfo_8h-source.html#l00081">dtn::BlockInfo::data()</a>, <a class="el" href="BlockInfo_8h-source.html#l00074">dtn::BlockInfo::eid_list()</a>, <a class="el" href="SDNV_8cc-source.html#l00054">log_err_p</a>, <a class="el" href="bundling_2Bundle_8h-source.html#l00269">dtn::Bundle::mutable_session_eid()</a>, and <a class="el" href="bundling_2Bundle_8h-source.html#l00270">dtn::Bundle::set_session_flags()</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="SessionBlockProcessor_8h-source.html">SessionBlockProcessor.h</a><li><a class="el" href="SessionBlockProcessor_8cc-source.html">SessionBlockProcessor.cc</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Mon Jul 21 14:09:52 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>