Sophie

Sophie

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

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: TcaController.cc File 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><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>TcaController.cc File Reference</h1><code>#include &lt;unistd.h&gt;</code><br>
<code>#include &lt;errno.h&gt;</code><br>
<code>#include &quot;<a class="el" href="dtn__api_8h-source.html">dtn_api.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="TcaController_8h-source.html">TcaController.h</a>&quot;</code><br>

<p>
<a href="TcaController_8cc-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></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="TcaController_8cc.html#ac9fc2d8009fcf76a55975090be35659">make_spec</a> (<a class="el" href="structdtn__bundle__spec__t.html">dtn_bundle_spec_t</a> &amp;spec, std::string source, std::string dest, std::string replyto, int <a class="el" href="dtnsend_8cc.html#d6057e40387509de502bdc91007d3238">expiration</a>, <a class="el" href="dtn__types_8h.html#993858e35739619750a07d5dc1c275e0">dtn_bundle_priority_t</a> <a class="el" href="dtnsend_8cc.html#4ba3115667f04372a659752ad557db6c">priority</a>=COS_NORMAL, <a class="el" href="dtn__types_8h.html#ed7af5cc4e44a2ced1acdee4e441f000">dtn_bundle_delivery_opts_t</a> dopts=DOPTS_NONE)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="TcaController_8cc.html#be1dd7bb182d86b3fdeacecf9131770f">check_nargs</a> (const <a class="el" href="classdtn_1_1TcaControlBundle.html">dtn::TcaControlBundle</a> &amp;cb, uint n_expected)</td></tr>

<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="TcaController_8cc.html#656b8d50e4036b8ae51663e47beea58d">debug</a> = 1</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static const int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="TcaController_8cc.html#69d60431ca35112c6c1da6ea76f2cc98">RECV_TIMEOUT</a> = 30000</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static const u_int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="TcaController_8cc.html#419256ea01e9e4997facfc078798441e">REG_EXPIRATION_TIME</a> = 2000000</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="be1dd7bb182d86b3fdeacecf9131770f"></a><!-- doxytag: member="TcaController.cc::check_nargs" ref="be1dd7bb182d86b3fdeacecf9131770f" args="(const dtn::TcaControlBundle &amp;cb, uint n_expected)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> check_nargs           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classdtn_1_1TcaControlBundle.html">dtn::TcaControlBundle</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>cb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint&nbsp;</td>
          <td class="paramname"> <em>n_expected</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="TcaController_8cc-source.html#l00095">95</a> of file <a class="el" href="TcaController_8cc-source.html">TcaController.cc</a>.</p>

<p>References <a class="el" href="TcaControlBundle_8h-source.html#l00062">dtn::TcaControlBundle::args_</a>, and <a class="el" href="TcaControlBundle_8cc-source.html#l00045">dtn::TcaControlBundle::str()</a>.</p>

<p>Referenced by <a class="el" href="TcaController_8cc-source.html#l00387">TcaController::handle_link_announce()</a>, and <a class="el" href="TcaController_8cc-source.html#l00506">TcaController::route_reg()</a>.</p>

</div>
</div><p>
<a class="anchor" name="ac9fc2d8009fcf76a55975090be35659"></a><!-- doxytag: member="TcaController.cc::make_spec" ref="ac9fc2d8009fcf76a55975090be35659" args="(dtn_bundle_spec_t &amp;spec, std::string source, std::string dest, std::string replyto, int expiration, dtn_bundle_priority_t priority=COS_NORMAL, dtn_bundle_delivery_opts_t dopts=DOPTS_NONE)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="serialsource_8c.html#1062901a7428fdd9c7f180f5e01ea056">bool</a> make_spec           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structdtn__bundle__spec__t.html">dtn_bundle_spec_t</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>spec</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&nbsp;</td>
          <td class="paramname"> <em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&nbsp;</td>
          <td class="paramname"> <em>replyto</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>expiration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="dtn__types_8h.html#993858e35739619750a07d5dc1c275e0">dtn_bundle_priority_t</a>&nbsp;</td>
          <td class="paramname"> <em>priority</em> = <code>COS_NORMAL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="dtn__types_8h.html#ed7af5cc4e44a2ced1acdee4e441f000">dtn_bundle_delivery_opts_t</a>&nbsp;</td>
          <td class="paramname"> <em>dopts</em> = <code>DOPTS_NONE</code></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="TcaController_8cc-source.html#l00054">54</a> of file <a class="el" href="TcaController_8cc-source.html">TcaController.cc</a>.</p>

<p>References <a class="el" href="dtn__types_8h-source.html#l00261">dtn_bundle_spec_t::dest</a>, <a class="el" href="dtn__types_8h-source.html#l00264">dtn_bundle_spec_t::dopts</a>, <a class="el" href="dtn__api_8c-source.html#l00681">dtn_parse_eid_string()</a>, <a class="el" href="dtn__types_8h-source.html#l00265">dtn_bundle_spec_t::expiration</a>, <a class="el" href="dtnsend_8cc-source.html#l00056">priority</a>, <a class="el" href="dtn__types_8h-source.html#l00263">dtn_bundle_spec_t::priority</a>, <a class="el" href="dtn__types_8h-source.html#l00262">dtn_bundle_spec_t::replyto</a>, and <a class="el" href="dtn__types_8h-source.html#l00260">dtn_bundle_spec_t::source</a>.</p>

<p>Referenced by <a class="el" href="TcaController_8cc-source.html#l00563">TcaController::gate_reg()</a>.</p>

</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="656b8d50e4036b8ae51663e47beea58d"></a><!-- doxytag: member="TcaController.cc::debug" ref="656b8d50e4036b8ae51663e47beea58d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="TcaController_8cc.html#656b8d50e4036b8ae51663e47beea58d">debug</a> = 1<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

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

</div>
</div><p>
<a class="anchor" name="69d60431ca35112c6c1da6ea76f2cc98"></a><!-- doxytag: member="TcaController.cc::RECV_TIMEOUT" ref="69d60431ca35112c6c1da6ea76f2cc98" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="TcaController_8cc.html#69d60431ca35112c6c1da6ea76f2cc98">RECV_TIMEOUT</a> = 30000<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="TcaController_8cc-source.html#l00038">38</a> of file <a class="el" href="TcaController_8cc-source.html">TcaController.cc</a>.</p>

<p>Referenced by <a class="el" href="TcaController_8cc-source.html#l00205">TcaController::run()</a>.</p>

</div>
</div><p>
<a class="anchor" name="419256ea01e9e4997facfc078798441e"></a><!-- doxytag: member="TcaController.cc::REG_EXPIRATION_TIME" ref="419256ea01e9e4997facfc078798441e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const u_int32_t <a class="el" href="TcaController_8cc.html#419256ea01e9e4997facfc078798441e">REG_EXPIRATION_TIME</a> = 2000000<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="TcaController_8cc-source.html#l00047">47</a> of file <a class="el" href="TcaController_8cc-source.html">TcaController.cc</a>.</p>

<p>Referenced by <a class="el" href="TcaController_8cc-source.html#l00128">TcaController::dtn_reg()</a>.</p>

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Jan 30 09:27:01 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>