Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > d9faa203c2b0b6fbb179d93daaea81b7 > files > 68

libdtn-devel-2.6.0-1mdv2009.0.i586.rpm

<!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: BlockProcessor.h Source File</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&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
<h1>BlockProcessor.h</h1><a href="BlockProcessor_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> *    Copyright 2006 Intel Corporation</span>
<a name="l00003"></a>00003 <span class="comment"> * </span>
<a name="l00004"></a>00004 <span class="comment"> *    Licensed under the Apache License, Version 2.0 (the "License");</span>
<a name="l00005"></a>00005 <span class="comment"> *    you may not use this file except in compliance with the License.</span>
<a name="l00006"></a>00006 <span class="comment"> *    You may obtain a copy of the License at</span>
<a name="l00007"></a>00007 <span class="comment"> * </span>
<a name="l00008"></a>00008 <span class="comment"> *        http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00009"></a>00009 <span class="comment"> * </span>
<a name="l00010"></a>00010 <span class="comment"> *    Unless required by applicable law or agreed to in writing, software</span>
<a name="l00011"></a>00011 <span class="comment"> *    distributed under the License is distributed on an "AS IS" BASIS,</span>
<a name="l00012"></a>00012 <span class="comment"> *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<a name="l00013"></a>00013 <span class="comment"> *    See the License for the specific language governing permissions and</span>
<a name="l00014"></a>00014 <span class="comment"> *    limitations under the License.</span>
<a name="l00015"></a>00015 <span class="comment"> */</span>
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef _BLOCKPROCESSOR_H_</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define _BLOCKPROCESSOR_H_</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;oasys/compat/inttypes.h&gt;</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="BundleProtocol_8h.html">BundleProtocol.h</a>"</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="BlockInfo_8h.html">BlockInfo.h</a>"</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="BP__Local_8h.html">BP_Local.h</a>"</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="keyword">namespace </span>dtn {
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">class </span>BlockInfo;
<a name="l00029"></a>00029 <span class="keyword">class </span>BlockInfoVec;
<a name="l00030"></a>00030 <span class="keyword">class </span>Bundle;
<a name="l00031"></a>00031 <span class="keyword">class </span>Link;
<a name="l00032"></a>00032 <span class="keyword">class </span>OpaqueContext;
<a name="l00033"></a>00033 
<a name="l00034"></a><a class="code" href="BlockProcessor_8h.html#446572d61c813971cb4d5ce4ee1b9c0b">00034</a> <span class="preprocessor">#define BP_SUCCESS (int)(0)</span>
<a name="l00035"></a><a class="code" href="BlockProcessor_8h.html#cce9a45a37bad1da41648533b0e15457">00035</a> <span class="preprocessor"></span><span class="preprocessor">#define BP_FAIL    (int)(-1)</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span>
<a name="l00042"></a><a class="code" href="classdtn_1_1BlockProcessor.html">00042</a> <span class="keyword">class </span><a class="code" href="classdtn_1_1BlockProcessor.html" title="Base class for the protocol handling of bundle blocks, including the core primary...">BlockProcessor</a> {
<a name="l00043"></a>00043 <span class="keyword">public</span>:
<a name="l00047"></a>00047     <span class="keyword">typedef</span> void (<a class="code" href="classdtn_1_1BlockProcessor.html#65e98938e66022edf2971fa59721a782" title="Typedef for a process function pointer.">process_func</a>)(<span class="keyword">const</span> <a class="code" href="classdtn_1_1Bundle.html" title="The internal representation of a bundle.">Bundle</a>*    bundle,
<a name="l00048"></a>00048                                 <span class="keyword">const</span> <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>* caller_block,
<a name="l00049"></a>00049                                 <span class="keyword">const</span> <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>* target_block,
<a name="l00050"></a>00050                                 <span class="keyword">const</span> <span class="keywordtype">void</span>*      <a class="code" href="num2sdnv_8c.html#a81cdcc7ff6987bc85c073253e32715f">buf</a>,
<a name="l00051"></a>00051                                 <span class="keywordtype">size_t</span>           <a class="code" href="num2sdnv_8c.html#fed088663f8704004425cdae2120b9b3">len</a>,
<a name="l00052"></a>00052                                 OpaqueContext*   r);
<a name="l00056"></a>00056     <span class="keyword">typedef</span> <a class="code" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> (<a class="code" href="classdtn_1_1BlockProcessor.html#17f2dd5627da39aab829ef8dfc37b252" title="Typedef for a mutate function pointer.">mutate_func</a>)(<span class="keyword">const</span> <a class="code" href="classdtn_1_1Bundle.html" title="The internal representation of a bundle.">Bundle</a>*    bundle,
<a name="l00057"></a>00057                                <span class="keyword">const</span> <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>* caller_block,
<a name="l00058"></a>00058                                <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>*       target_block,
<a name="l00059"></a>00059                                <span class="keywordtype">void</span>*            <a class="code" href="num2sdnv_8c.html#a81cdcc7ff6987bc85c073253e32715f">buf</a>,
<a name="l00060"></a>00060                                <span class="keywordtype">size_t</span>           <a class="code" href="num2sdnv_8c.html#fed088663f8704004425cdae2120b9b3">len</a>,
<a name="l00061"></a>00061                                OpaqueContext*   context);
<a name="l00062"></a>00062 
<a name="l00064"></a><a class="code" href="classdtn_1_1BlockProcessor.html#149ead667d3a4181d58c5eece00b648d">00064</a>     <span class="keyword">typedef</span> <a class="code" href="classdtn_1_1BlockInfo.html#3d0bc8cd207912ac5406fde3fc2c8d1c" title="List owner indicator (not transmitted).">BlockInfo::list_owner_t</a> <a class="code" href="classdtn_1_1BlockInfo.html#3d0bc8cd207912ac5406fde3fc2c8d1c" title="List owner indicator (not transmitted).">list_owner_t</a>;
<a name="l00065"></a><a class="code" href="classdtn_1_1BlockProcessor.html#524564f90433756eb2bcfd815e70c0e1">00065</a>     <span class="keyword">typedef</span> <a class="code" href="classdtn_1_1BundleProtocol.html#37b000d94172c06970bb8af32889f917" title="Bundle Status Report &amp;quot;Reason Code&amp;quot; flags.">BundleProtocol::status_report_reason_t</a> <a class="code" href="classdtn_1_1BundleProtocol.html#37b000d94172c06970bb8af32889f917" title="Bundle Status Report &amp;quot;Reason Code&amp;quot; flags.">status_report_reason_t</a>;
<a name="l00067"></a>00067     
<a name="l00074"></a>00074     <a class="code" href="classdtn_1_1BlockProcessor.html#b1578b54c23dee910a62937b5c4f9484" title="Constructor that takes the block typecode.">BlockProcessor</a>(<span class="keywordtype">int</span> <a class="code" href="classdtn_1_1BlockProcessor.html#5a5794eea1bd61dfbef1a691ef9f8d97" title="Accessors.">block_type</a>);
<a name="l00075"></a>00075                    
<a name="l00079"></a>00079     <span class="keyword">virtual</span> <a class="code" href="classdtn_1_1BlockProcessor.html#bee24525fc2b941b4849985b1397f699" title="Virtual destructor.">~BlockProcessor</a>();
<a name="l00080"></a>00080     
<a name="l00082"></a><a class="code" href="classdtn_1_1BlockProcessor.html#5a5794eea1bd61dfbef1a691ef9f8d97">00082</a>     <span class="keywordtype">int</span> <a class="code" href="classdtn_1_1BlockProcessor.html#5a5794eea1bd61dfbef1a691ef9f8d97" title="Accessors.">block_type</a>() { <span class="keywordflow">return</span> <a class="code" href="classdtn_1_1BlockProcessor.html#4487fbc9a5a8270f1e3018d79dc25b4c" title="The block typecode for this handler.">block_type_</a>; }
<a name="l00084"></a>00084     
<a name="l00101"></a>00101     <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classdtn_1_1BlockProcessor.html#1f73d119593ef13da9c5ee845fd5ec00" title="First callback for parsing blocks that is expected to append a chunk of the given...">consume</a>(<a class="code" href="classdtn_1_1Bundle.html" title="The internal representation of a bundle.">Bundle</a>*    bundle,
<a name="l00102"></a>00102                         <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>* block,
<a name="l00103"></a>00103                         u_char*    <a class="code" href="num2sdnv_8c.html#a81cdcc7ff6987bc85c073253e32715f">buf</a>,
<a name="l00104"></a>00104                         <span class="keywordtype">size_t</span>     <a class="code" href="num2sdnv_8c.html#fed088663f8704004425cdae2120b9b3">len</a>);
<a name="l00105"></a>00105 
<a name="l00110"></a>00110     <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classdtn_1_1BlockProcessor.html#95caddbca046da1a05538359c351f644" title="Perform any needed action in the case where a block/bundle has been reloaded from...">reload_post_process</a>(<a class="code" href="classdtn_1_1Bundle.html" title="The internal representation of a bundle.">Bundle</a>*       bundle,
<a name="l00111"></a>00111                                     <a class="code" href="classdtn_1_1BlockInfoVec.html" title="Class for a vector of BlockInfo structures.">BlockInfoVec</a>* block_list,
<a name="l00112"></a>00112                                     <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>*    block);
<a name="l00113"></a>00113 
<a name="l00114"></a>00114 
<a name="l00121"></a>00121     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classdtn_1_1BlockProcessor.html#14242dcdb094a179f718a5eaee23cabd" title="Validate the block.">validate</a>(<span class="keyword">const</span> <a class="code" href="classdtn_1_1Bundle.html" title="The internal representation of a bundle.">Bundle</a>*           bundle,
<a name="l00122"></a>00122                           <a class="code" href="classdtn_1_1BlockInfoVec.html" title="Class for a vector of BlockInfo structures.">BlockInfoVec</a>*           block_list,
<a name="l00123"></a>00123                           <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>*              block,
<a name="l00124"></a>00124                           <a class="code" href="classdtn_1_1BlockProcessor.html#524564f90433756eb2bcfd815e70c0e1" title="Import some typedefs from other classes.">status_report_reason_t</a>* reception_reason,
<a name="l00125"></a>00125                           <a class="code" href="classdtn_1_1BlockProcessor.html#524564f90433756eb2bcfd815e70c0e1" title="Import some typedefs from other classes.">status_report_reason_t</a>* deletion_reason);
<a name="l00126"></a>00126 
<a name="l00135"></a>00135     <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classdtn_1_1BlockProcessor.html#f7c21ecdcbbb4f2060c7f5f865415c48" title="First callback to generate blocks for the output pass.">prepare</a>(<span class="keyword">const</span> <a class="code" href="classdtn_1_1Bundle.html" title="The internal representation of a bundle.">Bundle</a>*    bundle,
<a name="l00136"></a>00136                         <a class="code" href="classdtn_1_1BlockInfoVec.html" title="Class for a vector of BlockInfo structures.">BlockInfoVec</a>*    xmit_blocks,
<a name="l00137"></a>00137                         <span class="keyword">const</span> <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>* source,
<a name="l00138"></a>00138                         <span class="keyword">const</span> <a class="code" href="namespacedtn.html#6efb37e503f8062c537b022eb755b94e" title="Typedef for a reference on a link.">LinkRef</a>&amp;   link,
<a name="l00139"></a>00139                         <a class="code" href="classdtn_1_1BlockProcessor.html#149ead667d3a4181d58c5eece00b648d" title="Import some typedefs from other classes.">list_owner_t</a>     list);
<a name="l00140"></a>00140     
<a name="l00149"></a>00149     <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classdtn_1_1BlockProcessor.html#93079be0f3f307ae9a800106a9518f3e" title="Second callback for transmitting a bundle.">generate</a>(<span class="keyword">const</span> <a class="code" href="classdtn_1_1Bundle.html" title="The internal representation of a bundle.">Bundle</a>*  bundle,
<a name="l00150"></a>00150                          <a class="code" href="classdtn_1_1BlockInfoVec.html" title="Class for a vector of BlockInfo structures.">BlockInfoVec</a>*  xmit_blocks,
<a name="l00151"></a>00151                          <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>*     block,
<a name="l00152"></a>00152                          <span class="keyword">const</span> <a class="code" href="namespacedtn.html#6efb37e503f8062c537b022eb755b94e" title="Typedef for a reference on a link.">LinkRef</a>&amp; link,
<a name="l00153"></a>00153                          <span class="keywordtype">bool</span>           last) = 0;
<a name="l00154"></a>00154     
<a name="l00167"></a>00167     <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classdtn_1_1BlockProcessor.html#0256b44d0f9f42b1f36054c68444de6c" title="Third callback for transmitting a bundle.">finalize</a>(<span class="keyword">const</span> <a class="code" href="classdtn_1_1Bundle.html" title="The internal representation of a bundle.">Bundle</a>*  bundle, 
<a name="l00168"></a>00168                          <a class="code" href="classdtn_1_1BlockInfoVec.html" title="Class for a vector of BlockInfo structures.">BlockInfoVec</a>*  xmit_blocks, 
<a name="l00169"></a>00169                          <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>*     block, 
<a name="l00170"></a>00170                          <span class="keyword">const</span> <a class="code" href="namespacedtn.html#6efb37e503f8062c537b022eb755b94e" title="Typedef for a reference on a link.">LinkRef</a>&amp; link);
<a name="l00171"></a>00171 
<a name="l00187"></a>00187     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classdtn_1_1BlockProcessor.html#4e9295a532828f2cc6a20fb9f95a69c9" title="Accessor to virtualize read-only processing contents of the block in various ways...">process</a>(<a class="code" href="classdtn_1_1BlockProcessor.html#65e98938e66022edf2971fa59721a782" title="Typedef for a process function pointer.">process_func</a>*    func,
<a name="l00188"></a>00188                          <span class="keyword">const</span> <a class="code" href="classdtn_1_1Bundle.html" title="The internal representation of a bundle.">Bundle</a>*    bundle,
<a name="l00189"></a>00189                          <span class="keyword">const</span> <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>* caller_block,
<a name="l00190"></a>00190                          <span class="keyword">const</span> <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>* target_block,
<a name="l00191"></a>00191                          <span class="keywordtype">size_t</span>           offset,            
<a name="l00192"></a>00192                          <span class="keywordtype">size_t</span>           <a class="code" href="num2sdnv_8c.html#fed088663f8704004425cdae2120b9b3">len</a>,
<a name="l00193"></a>00193                          OpaqueContext*   context);
<a name="l00194"></a>00194     
<a name="l00201"></a>00201     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classdtn_1_1BlockProcessor.html#05bcb879796314ae4a2c0d909277c008" title="Similar to process() but for potentially mutating processing functions.">mutate</a>(<a class="code" href="classdtn_1_1BlockProcessor.html#17f2dd5627da39aab829ef8dfc37b252" title="Typedef for a mutate function pointer.">mutate_func</a>*     func,
<a name="l00202"></a>00202                         <a class="code" href="classdtn_1_1Bundle.html" title="The internal representation of a bundle.">Bundle</a>*          bundle,
<a name="l00203"></a>00203                         <span class="keyword">const</span> <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>* caller_block,
<a name="l00204"></a>00204                         <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>*       target_block,
<a name="l00205"></a>00205                         <span class="keywordtype">size_t</span>           offset,
<a name="l00206"></a>00206                         <span class="keywordtype">size_t</span>           <a class="code" href="num2sdnv_8c.html#fed088663f8704004425cdae2120b9b3">len</a>,
<a name="l00207"></a>00207                         OpaqueContext*   context);
<a name="l00208"></a>00208 
<a name="l00221"></a>00221     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classdtn_1_1BlockProcessor.html#f7307eeed9add202cbaa215e48c3d5da" title="Accessor to virtualize copying contents out from the block info.">produce</a>(<span class="keyword">const</span> <a class="code" href="classdtn_1_1Bundle.html" title="The internal representation of a bundle.">Bundle</a>*    bundle,
<a name="l00222"></a>00222                          <span class="keyword">const</span> <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>* block,
<a name="l00223"></a>00223                          u_char*          <a class="code" href="num2sdnv_8c.html#a81cdcc7ff6987bc85c073253e32715f">buf</a>,
<a name="l00224"></a>00224                          <span class="keywordtype">size_t</span>           offset,
<a name="l00225"></a>00225                          <span class="keywordtype">size_t</span>           <a class="code" href="num2sdnv_8c.html#fed088663f8704004425cdae2120b9b3">len</a>);
<a name="l00226"></a>00226 
<a name="l00231"></a>00231     <span class="keywordtype">void</span> <a class="code" href="classdtn_1_1BlockProcessor.html#e0866915affada343af6b8d8b16bf354" title="General hook to set up a block with the given contents.">init_block</a>(<a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>*    block,
<a name="l00232"></a>00232                     <a class="code" href="classdtn_1_1BlockInfoVec.html" title="Class for a vector of BlockInfo structures.">BlockInfoVec</a>* block_list,
<a name="l00233"></a>00233                     u_int8_t      type,
<a name="l00234"></a>00234                     u_int8_t      flags,
<a name="l00235"></a>00235                     <span class="keyword">const</span> u_char* bp,
<a name="l00236"></a>00236                     <span class="keywordtype">size_t</span>        <a class="code" href="num2sdnv_8c.html#fed088663f8704004425cdae2120b9b3">len</a>);
<a name="l00237"></a>00237     
<a name="l00238"></a>00238 
<a name="l00239"></a>00239 <span class="keyword">protected</span>:
<a name="l00240"></a><a class="code" href="classdtn_1_1BlockProcessor.html#226a2c8d06ec75da24a71e730275802b">00240</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classdtn_1_1BundleProtocol.html" title="Centralized class used to convert a Bundle to / from the bundle protocol specification...">BundleProtocol</a>;
<a name="l00241"></a><a class="code" href="classdtn_1_1BlockProcessor.html#f60b1c05e77bb387f21aaff2c8ac532b">00241</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>;
<a name="l00242"></a><a class="code" href="classdtn_1_1BlockProcessor.html#59e06d8d4aeedf6e845673edd9a295e3">00242</a>     <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classdtn_1_1BlockProcessor.html#59e06d8d4aeedf6e845673edd9a295e3">Ciphersuite</a>;
<a name="l00243"></a>00243     
<a name="l00250"></a>00250     <span class="keywordtype">int</span> <a class="code" href="classdtn_1_1BlockProcessor.html#16d1b8a2805b0888536bd001ce5e9e5b" title="Consume a block preamble consisting of type, flags(SDNV), EID-list (composite field...">consume_preamble</a>(<a class="code" href="classdtn_1_1BlockInfoVec.html" title="Class for a vector of BlockInfo structures.">BlockInfoVec</a>* recv_blocks,
<a name="l00251"></a>00251                          <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>*    block,
<a name="l00252"></a>00252                          u_char*       <a class="code" href="num2sdnv_8c.html#a81cdcc7ff6987bc85c073253e32715f">buf</a>,
<a name="l00253"></a>00253                          <span class="keywordtype">size_t</span>        <a class="code" href="num2sdnv_8c.html#fed088663f8704004425cdae2120b9b3">len</a>,
<a name="l00254"></a>00254                          u_int64_t*    flagp = NULL);
<a name="l00255"></a>00255     
<a name="l00260"></a>00260     <span class="keywordtype">void</span> <a class="code" href="classdtn_1_1BlockProcessor.html#c08f7b82f6049f30710a5dcdebb61ce7" title="Generate the standard preamble for the given block type, flags, EID-list and content...">generate_preamble</a>(<a class="code" href="classdtn_1_1BlockInfoVec.html" title="Class for a vector of BlockInfo structures.">BlockInfoVec</a>* xmit_blocks,
<a name="l00261"></a>00261                            <a class="code" href="classdtn_1_1BlockInfo.html" title="Class used to store unparsed bundle blocks and associated metadata about them.">BlockInfo</a>*    block,
<a name="l00262"></a>00262                            u_int8_t      type,
<a name="l00263"></a>00263                            u_int64_t     flags,
<a name="l00264"></a>00264                            u_int64_t     data_length);
<a name="l00265"></a>00265     
<a name="l00266"></a>00266 <span class="keyword">private</span>:
<a name="l00268"></a><a class="code" href="classdtn_1_1BlockProcessor.html#4487fbc9a5a8270f1e3018d79dc25b4c">00268</a>     <span class="keywordtype">int</span> <a class="code" href="classdtn_1_1BlockProcessor.html#4487fbc9a5a8270f1e3018d79dc25b4c" title="The block typecode for this handler.">block_type_</a>;
<a name="l00269"></a>00269 };
<a name="l00270"></a>00270 
<a name="l00271"></a>00271 } <span class="comment">// namespace dtn</span>
<a name="l00272"></a>00272 
<a name="l00273"></a>00273 <span class="preprocessor">#endif </span><span class="comment">/* _BLOCKPROCESSOR_H_ */</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jul 21 14:09:37 2008 for DTN Reference Implementation by&nbsp;
<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>