Sophie

Sophie

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

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: dtn::LoggingRegistration 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&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_1LoggingRegistration.html">LoggingRegistration</a>
  </div>
</div>
<div class="contents">
<h1>dtn::LoggingRegistration Class Reference</h1><!-- doxytag: class="dtn::LoggingRegistration" --><!-- doxytag: inherits="dtn::Registration" --><code>#include &lt;<a class="el" href="LoggingRegistration_8h-source.html">LoggingRegistration.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for dtn::LoggingRegistration:</div>
<div class="dynsection">

<p><center><img src="classdtn_1_1LoggingRegistration.png" usemap="#dtn::LoggingRegistration_map" border="0" alt=""></center>
<map name="dtn::LoggingRegistration_map">
<area href="classdtn_1_1Registration.html" alt="dtn::Registration" shape="rect" coords="0,0,146,24">
</map>
</div>

<p>
<a href="classdtn_1_1LoggingRegistration-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
A simple utility class used mostly for testing registrations. 
<p>
When created, this sets up a new registration within the daemon, and for any bundles that arrive, outputs logs of the bundle header fields as well as the payload data (if ascii). The implementation is structured as a thread that blocks (forever) waiting for bundles to arrive on the registration's bundle list, then logging the bundles and looping again. 
<p>Definition at line <a class="el" href="LoggingRegistration_8h-source.html#l00038">38</a> of file <a class="el" href="LoggingRegistration_8h-source.html">LoggingRegistration.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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1LoggingRegistration.html#16b1392853134e4da9859bf0c0334897">LoggingRegistration</a> (const <a class="el" href="classdtn_1_1EndpointIDPattern.html">EndpointIDPattern</a> &amp;endpoint)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdtn_1_1LoggingRegistration.html#73135dea1bcd1a115c8a36b5d56677d9">deliver_bundle</a> (<a class="el" href="classdtn_1_1Bundle.html">Bundle</a> *bundle)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Abstract hook for subclasses to deliver a bundle to this registration.  <a href="#73135dea1bcd1a115c8a36b5d56677d9"></a><br></td></tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="16b1392853134e4da9859bf0c0334897"></a><!-- doxytag: member="dtn::LoggingRegistration::LoggingRegistration" ref="16b1392853134e4da9859bf0c0334897" args="(const EndpointIDPattern &amp;endpoint)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">dtn::LoggingRegistration::LoggingRegistration           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classdtn_1_1EndpointIDPattern.html">EndpointIDPattern</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>endpoint</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="LoggingRegistration_8cc-source.html#l00033">33</a> of file <a class="el" href="LoggingRegistration_8cc-source.html">LoggingRegistration.cc</a>.</p>

<p>References <a class="el" href="EndpointID_8h-source.html#l00264">dtn::EndpointID::c_str()</a>, <a class="el" href="Registration_8h-source.html#l00165">dtn::Registration::regid_</a>, and <a class="el" href="Registration_8h-source.html#l00126">dtn::Registration::set_active()</a>.</p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="73135dea1bcd1a115c8a36b5d56677d9"></a><!-- doxytag: member="dtn::LoggingRegistration::deliver_bundle" ref="73135dea1bcd1a115c8a36b5d56677d9" args="(Bundle *bundle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dtn::LoggingRegistration::deliver_bundle           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classdtn_1_1Bundle.html">Bundle</a> *&nbsp;</td>
          <td class="paramname"> <em>bundle</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Abstract hook for subclasses to deliver a bundle to this registration. 
<p>

<p>Implements <a class="el" href="classdtn_1_1Registration.html#6e66f84ad64d676654ea7ef89f24cd69">dtn::Registration</a>.</p>

<p>Definition at line <a class="el" href="LoggingRegistration_8cc-source.html#l00044">44</a> of file <a class="el" href="LoggingRegistration_8cc-source.html">LoggingRegistration.cc</a>.</p>

<p>References <a class="el" href="num2sdnv_8c-source.html#l00035">buf</a>, <a class="el" href="Bundle_8cc-source.html#l00138">dtn::Bundle::format_verbose()</a>, <a class="el" href="num2sdnv_8c-source.html#l00042">hex</a>, <a class="el" href="num2sdnv_8c-source.html#l00034">len</a>, <a class="el" href="BundlePayload_8h-source.html#l00077">dtn::BundlePayload::length()</a>, <a class="el" href="bundling_2Bundle_8h-source.html#l00232">dtn::Bundle::payload()</a>, <a class="el" href="dtncat_8c-source.html#l00087">payload_buf</a>, <a class="el" href="BundleDaemon_8cc-source.html#l00134">dtn::BundleDaemon::post()</a>, and <a class="el" href="BundlePayload_8cc-source.html#l00419">dtn::BundlePayload::read_data()</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="LoggingRegistration_8h-source.html">LoggingRegistration.h</a><li><a class="el" href="LoggingRegistration_8cc-source.html">LoggingRegistration.cc</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Jul 21 14:09:53 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>