Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 29c369053a983cc5d8c880dc6e0a2237 > files > 863

libdtn-devel-2.6.0-2mdv2009.1.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: dtn::BundleAcceptRequest Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<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 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&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespacedtn.html">dtn</a>::<a class="el" href="classdtn_1_1BundleAcceptRequest.html">BundleAcceptRequest</a>
  </div>
</div>
<div class="contents">
<h1>dtn::BundleAcceptRequest Class Reference</h1><!-- doxytag: class="dtn::BundleAcceptRequest" --><!-- doxytag: inherits="dtn::BundleEvent" -->Event class to optionally probe if a bundle can be accepted by the system before a <a class="el" href="classdtn_1_1BundleReceivedEvent.html" title="Event class for new bundle arrivals.">BundleReceivedEvent</a> is posted.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="BundleEvent_8h-source.html">BundleEvent.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for dtn::BundleAcceptRequest:</div>
<div class="dynsection">

<p><center><img src="classdtn_1_1BundleAcceptRequest.png" usemap="#dtn::BundleAcceptRequest_map" border="0" alt=""></center>
<map name="dtn::BundleAcceptRequest_map">
<area href="classdtn_1_1BundleEvent.html" alt="dtn::BundleEvent" shape="rect" coords="0,0,158,24">
</map>
</div>

<p>
<a href="classdtn_1_1BundleAcceptRequest-members.html">List of all members.</a><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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1BundleAcceptRequest.html#5486f389cbc67145b9bc96e916f72e3a">BundleAcceptRequest</a> (const <a class="el" href="namespacedtn.html#87094f3b26b9f1d469e616d311ae57b1">BundleRef</a> &amp;bundle, <a class="el" href="namespacedtn.html#60ee39c9672604f59fe1b12d4e1d142b">event_source_t</a> source, <a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> *result, int *reason)</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>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1BundleAcceptRequest.html#93006028c70fa765114d5c8355e0f9fb">bundle_</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The newly arrived bundle.  <a href="#93006028c70fa765114d5c8355e0f9fb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1BundleAcceptRequest.html#30e08dfe0781f2c5d3975f370ee838b1">source_</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The source of the event.  <a href="#30e08dfe0781f2c5d3975f370ee838b1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1BundleAcceptRequest.html#dbde34d7d9dc5d665c873a5be2286f0e">result_</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pointer to the expected result.  <a href="#dbde34d7d9dc5d665c873a5be2286f0e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1BundleAcceptRequest.html#3eddff9e019d3950b5ca58d60b65a842">reason_</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pointer to the reason code.  <a href="#3eddff9e019d3950b5ca58d60b65a842"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Event class to optionally probe if a bundle can be accepted by the system before a <a class="el" href="classdtn_1_1BundleReceivedEvent.html" title="Event class for new bundle arrivals.">BundleReceivedEvent</a> is posted. 
<p>
Currently used for backpressure via the API.<p>
Note that the bundle may not be completely constructed when this event is posted. In particular, the payload need not be filled in yet, and other security fields may not be present. At a minimum though, the fields from the primary block and the payload length must be known. 
<p>Definition at line <a class="el" href="BundleEvent_8h-source.html#l01037">1037</a> of file <a class="el" href="BundleEvent_8h-source.html">BundleEvent.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="5486f389cbc67145b9bc96e916f72e3a"></a><!-- doxytag: member="dtn::BundleAcceptRequest::BundleAcceptRequest" ref="5486f389cbc67145b9bc96e916f72e3a" args="(const BundleRef &amp;bundle, event_source_t source, bool *result, int *reason)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">dtn::BundleAcceptRequest::BundleAcceptRequest           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespacedtn.html#87094f3b26b9f1d469e616d311ae57b1">BundleRef</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>bundle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacedtn.html#60ee39c9672604f59fe1b12d4e1d142b">event_source_t</a>&nbsp;</td>
          <td class="paramname"> <em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> *&nbsp;</td>
          <td class="paramname"> <em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>reason</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="BundleEvent_8h-source.html#l01039">1039</a> of file <a class="el" href="BundleEvent_8h-source.html">BundleEvent.h</a>.</p>

</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="93006028c70fa765114d5c8355e0f9fb"></a><!-- doxytag: member="dtn::BundleAcceptRequest::bundle_" ref="93006028c70fa765114d5c8355e0f9fb" 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_1BundleAcceptRequest.html#93006028c70fa765114d5c8355e0f9fb">dtn::BundleAcceptRequest::bundle_</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The newly arrived bundle. 
<p>

<p>Definition at line <a class="el" href="BundleEvent_8h-source.html#l01052">1052</a> of file <a class="el" href="BundleEvent_8h-source.html">BundleEvent.h</a>.</p>

<p>Referenced by <a class="el" href="BundleDaemon_8cc-source.html#l00473">dtn::BundleDaemon::handle_bundle_accept()</a>.</p>

</div>
</div><p>
<a class="anchor" name="3eddff9e019d3950b5ca58d60b65a842"></a><!-- doxytag: member="dtn::BundleAcceptRequest::reason_" ref="3eddff9e019d3950b5ca58d60b65a842" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int* <a class="el" href="classdtn_1_1BundleAcceptRequest.html#3eddff9e019d3950b5ca58d60b65a842">dtn::BundleAcceptRequest::reason_</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Pointer to the reason code. 
<p>

<p>Definition at line <a class="el" href="BundleEvent_8h-source.html#l01061">1061</a> of file <a class="el" href="BundleEvent_8h-source.html">BundleEvent.h</a>.</p>

<p>Referenced by <a class="el" href="BundleDaemon_8cc-source.html#l00473">dtn::BundleDaemon::handle_bundle_accept()</a>.</p>

</div>
</div><p>
<a class="anchor" name="dbde34d7d9dc5d665c873a5be2286f0e"></a><!-- doxytag: member="dtn::BundleAcceptRequest::result_" ref="dbde34d7d9dc5d665c873a5be2286f0e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a>* <a class="el" href="classdtn_1_1BundleAcceptRequest.html#dbde34d7d9dc5d665c873a5be2286f0e">dtn::BundleAcceptRequest::result_</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Pointer to the expected result. 
<p>

<p>Definition at line <a class="el" href="BundleEvent_8h-source.html#l01058">1058</a> of file <a class="el" href="BundleEvent_8h-source.html">BundleEvent.h</a>.</p>

<p>Referenced by <a class="el" href="BundleDaemon_8cc-source.html#l00473">dtn::BundleDaemon::handle_bundle_accept()</a>.</p>

</div>
</div><p>
<a class="anchor" name="30e08dfe0781f2c5d3975f370ee838b1"></a><!-- doxytag: member="dtn::BundleAcceptRequest::source_" ref="30e08dfe0781f2c5d3975f370ee838b1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classdtn_1_1BundleAcceptRequest.html#30e08dfe0781f2c5d3975f370ee838b1">dtn::BundleAcceptRequest::source_</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The source of the event. 
<p>

<p>Definition at line <a class="el" href="BundleEvent_8h-source.html#l01055">1055</a> of file <a class="el" href="BundleEvent_8h-source.html">BundleEvent.h</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="BundleEvent_8h-source.html">BundleEvent.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Jan 30 09:27:02 2009 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.8 </small></address>
</body>
</html>