a00683.html

来自「opendds 1.2 最新版 面向分布式实时网络编程」· HTML 代码 · 共 292 行 · 第 1/2 页

HTML
292 行
字号
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="39f84a059932a2e8fc8de9cc602436d2"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConfiguration::conn_retry_attempts_" ref="39f84a059932a2e8fc8de9cc602436d2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="a00683.html#39f84a059932a2e8fc8de9cc602436d2">OpenDDS::DCPS::SimpleTcpConfiguration::conn_retry_attempts_</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Number of attemps to reconnect before giving up and calling on_publication_lost() and on_subscription_lost() callbacks. The default is 3. 
</div>
</div><p>
<a class="anchor" name="485919c3d7b85ec76b6ed2132f3b0216"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConfiguration::conn_retry_backoff_multiplier_" ref="485919c3d7b85ec76b6ed2132f3b0216" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="a00683.html#485919c3d7b85ec76b6ed2132f3b0216">OpenDDS::DCPS::SimpleTcpConfiguration::conn_retry_backoff_multiplier_</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The backoff multiplier for reconnection strategy. The third and so on reconnect will be this value * the previous delay. Hence with conn_retry_initial_delay=500 and conn_retry_backoff_multiplier=1.5 the second reconnect attempt will be at 0.5 seconds after first retry connect fails; the third attempt will be 0.75 seconds after the second retry connect fails; the fourth attempt will be 1.125 seconds after the third retry connect fails. The default value is 2.0. 
</div>
</div><p>
<a class="anchor" name="0bf68e22d7772ad5d9d91c5579f35395"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConfiguration::conn_retry_initial_delay_" ref="0bf68e22d7772ad5d9d91c5579f35395" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="a00683.html#0bf68e22d7772ad5d9d91c5579f35395">OpenDDS::DCPS::SimpleTcpConfiguration::conn_retry_initial_delay_</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The initial retry delay in milliseconds. The first connection retry will be when the loss of connection is detected. The second try will be after this delay. The default is 500 miliseconds. 
</div>
</div><p>
<a class="anchor" name="ee792991c2434c40cc693ae572e3618c"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConfiguration::enable_nagle_algorithm_" ref="ee792991c2434c40cc693ae572e3618c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="a00683.html#ee792991c2434c40cc693ae572e3618c">OpenDDS::DCPS::SimpleTcpConfiguration::enable_nagle_algorithm_</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="4e69dfb59490cb143a531a15e2d339da"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConfiguration::local_address_" ref="4e69dfb59490cb143a531a15e2d339da" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ACE_INET_Addr <a class="el" href="a00683.html#4e69dfb59490cb143a531a15e2d339da">OpenDDS::DCPS::SimpleTcpConfiguration::local_address_</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Describes the local endpoint to be used to accept passive connections. 
</div>
</div><p>
<a class="anchor" name="d501972ed209fb42ba68676b0621df33"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConfiguration::local_address_str_" ref="d501972ed209fb42ba68676b0621df33" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="a00683.html#d501972ed209fb42ba68676b0621df33">OpenDDS::DCPS::SimpleTcpConfiguration::local_address_str_</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The address string used to provide to DCPSInfoRepo. This string is either from configuration file or default to hostname:port. The hostname is fully qualified hostname and the port is randomly picked by os. 
</div>
</div><p>
<a class="anchor" name="abd441cc47f17c5d9192b202a9bfedeb"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConfiguration::max_output_pause_period_" ref="abd441cc47f17c5d9192b202a9bfedeb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="a00683.html#abd441cc47f17c5d9192b202a9bfedeb">OpenDDS::DCPS::SimpleTcpConfiguration::max_output_pause_period_</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Maximum period (in milliseconds) of not being able to send queued messages. If there are samples queued and no output for longer than this period then the connection will be closed and on_*_lost() callbacks will be called. If the value is zero, the default, then this check will not be made. 
</div>
</div><p>
<a class="anchor" name="ea00887d15243406f0d51621e55ea50a"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConfiguration::passive_connect_duration_" ref="ea00887d15243406f0d51621e55ea50a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned long <a class="el" href="a00683.html#ea00887d15243406f0d51621e55ea50a">OpenDDS::DCPS::SimpleTcpConfiguration::passive_connect_duration_</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The time period in milliseconds for the acceptor side of a connection to wait for the connection. The default is 0 (wait forever) This currently doesn't apply to passive reconnections. 
</div>
</div><p>
<a class="anchor" name="72ff87d9fdd84c5b7364a435ab5427d2"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConfiguration::passive_reconnect_duration_" ref="72ff87d9fdd84c5b7364a435ab5427d2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="a00683.html#72ff87d9fdd84c5b7364a435ab5427d2">OpenDDS::DCPS::SimpleTcpConfiguration::passive_reconnect_duration_</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The time period in milliseconds for the acceptor side of a connection to wait for the connection to be reconnected. If not reconnected within this period then on_publication_lost() and on_subscription_lost() callbacks will be called. The default is 2 seconds (2000 millseconds). 
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a01079.html">SimpleTcpConfiguration.h</a><li><a class="el" href="a01078.html">SimpleTcpConfiguration.cpp</a><li><a class="el" href="a01080.html">SimpleTcpConfiguration.inl</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Nov 7 09:37:48 2008 for OpenDDS by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?