Sophie

Sophie

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

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::AlwaysOnLink 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_1AlwaysOnLink.html">AlwaysOnLink</a>
  </div>
</div>
<div class="contents">
<h1>dtn::AlwaysOnLink Class Reference</h1><!-- doxytag: class="dtn::AlwaysOnLink" --><!-- doxytag: inherits="dtn::Link" -->Abstraction for an always on link.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="AlwaysOnLink_8h-source.html">AlwaysOnLink.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for dtn::AlwaysOnLink:</div>
<div class="dynsection">

<p><center><img src="classdtn_1_1AlwaysOnLink.png" usemap="#dtn::AlwaysOnLink_map" border="0" alt=""></center>
<map name="dtn::AlwaysOnLink_map">
<area href="classdtn_1_1Link.html" alt="dtn::Link" shape="rect" coords="0,0,116,24">
</map>
</div>

<p>
<a href="classdtn_1_1AlwaysOnLink-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_1AlwaysOnLink.html#a347ba807ea2693fc99d553a5fb4b461">AlwaysOnLink</a> (std::string name, <a class="el" href="classdtn_1_1ConvergenceLayer.html">ConvergenceLayer</a> *cl, const char *nexthop)</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_1AlwaysOnLink.html#abe6787c4dd2fc80c45c5af5fe653461">set_initial_state</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Hook for subclass to post events to control the initial link state, after all initialization is complete.  <a href="#abe6787c4dd2fc80c45c5af5fe653461"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Abstraction for an always on link. 
<p>
ALWAYSON links are immediately opened upon creation and remain open for their duration. 
<p>Definition at line <a class="el" href="AlwaysOnLink_8h-source.html#l00031">31</a> of file <a class="el" href="AlwaysOnLink_8h-source.html">AlwaysOnLink.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="a347ba807ea2693fc99d553a5fb4b461"></a><!-- doxytag: member="dtn::AlwaysOnLink::AlwaysOnLink" ref="a347ba807ea2693fc99d553a5fb4b461" args="(std::string name, ConvergenceLayer *cl, const char *nexthop)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">dtn::AlwaysOnLink::AlwaysOnLink           </td>
          <td>(</td>
          <td class="paramtype">std::string&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classdtn_1_1ConvergenceLayer.html">ConvergenceLayer</a> *&nbsp;</td>
          <td class="paramname"> <em>cl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>nexthop</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="AlwaysOnLink_8cc-source.html#l00026">26</a> of file <a class="el" href="AlwaysOnLink_8cc-source.html">AlwaysOnLink.cc</a>.</p>

<p>References <a class="el" href="Link_8cc-source.html#l00374">dtn::Link::set_state()</a>, and <a class="el" href="contacts_2Link_8h-source.html#l00184">dtn::Link::UNAVAILABLE</a>.</p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="abe6787c4dd2fc80c45c5af5fe653461"></a><!-- doxytag: member="dtn::AlwaysOnLink::set_initial_state" ref="abe6787c4dd2fc80c45c5af5fe653461" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dtn::AlwaysOnLink::set_initial_state           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Hook for subclass to post events to control the initial link state, after all initialization is complete. 
<p>

<p>Reimplemented from <a class="el" href="classdtn_1_1Link.html#56ec91ab095a6a47bc70e3e03a400f94">dtn::Link</a>.</p>

<p>Definition at line <a class="el" href="AlwaysOnLink_8cc-source.html#l00034">34</a> of file <a class="el" href="AlwaysOnLink_8cc-source.html">AlwaysOnLink.cc</a>.</p>

<p>References <a class="el" href="contacts_2Link_8h-source.html#l00197">dtn::Link::OPEN</a>, <a class="el" href="BundleDaemon_8cc-source.html#l00141">dtn::BundleDaemon::post_at_head()</a>, and <a class="el" href="BundleEvent_8h-source.html#l00499">dtn::ContactEvent::USER</a>.</p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="AlwaysOnLink_8h-source.html">AlwaysOnLink.h</a><li><a class="el" href="AlwaysOnLink_8cc-source.html">AlwaysOnLink.cc</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Jan 30 09:27:03 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>