⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 a00684.html

📁 opendds 1.2 最新版 面向分布式实时网络编程
💻 HTML
📖 第 1 页 / 共 4 页
字号:
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This object would be "old" connection object and the provided is the new connection object. The "old" connection object will copy its states to to the "new" connection object. This is called by the <a class="el" href="a00686.html">SimpleTcpDataLink</a> when a new connection is accepted (with a new <a class="el" href="a00684.html">SimpleTcpConnection</a> object). We need make the state in "new" connection object consistent with the "old" connection object. 
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="fc7aebe2821f9e195627d52105a40c91"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::connected_" ref="fc7aebe2821f9e195627d52105a40c91" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ACE_Atomic_Op&lt;ACE_SYNCH_MUTEX, bool&gt; <a class="el" href="a00684.html#fc7aebe2821f9e195627d52105a40c91">OpenDDS::DCPS::SimpleTcpConnection::connected_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Flag indicates if connected or disconneted. It's set to true when actively connecting or passively acepting succeeds and set to false whenever the peer stream is closed. 
</div>
</div><p>
<a class="anchor" name="abd620ead137949adccf4d8b3a0997bb"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::is_connector_" ref="abd620ead137949adccf4d8b3a0997bb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="a00684.html#abd620ead137949adccf4d8b3a0997bb">OpenDDS::DCPS::SimpleTcpConnection::is_connector_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Flag indicate this connection object is the connector or acceptor. 
<p>

</div>
</div><p>
<a class="anchor" name="fbe7481f3aedad815b67e834cd408f1f"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::last_reconnect_attempted_" ref="fbe7481f3aedad815b67e834cd408f1f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ACE_Time_Value <a class="el" href="a00684.html#fbe7481f3aedad815b67e834cd408f1f">OpenDDS::DCPS::SimpleTcpConnection::last_reconnect_attempted_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Last time the connection is re-established. 
<p>

</div>
</div><p>
<a class="anchor" name="29f841862d99f50449ce9052f9356722"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::link_" ref="29f841862d99f50449ce9052f9356722" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00639.html">SimpleTcpDataLink_rch</a> <a class="el" href="a00684.html#29f841862d99f50449ce9052f9356722">OpenDDS::DCPS::SimpleTcpConnection::link_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Datalink object which is needed for connection lost callback. 
<p>

</div>
</div><p>
<a class="anchor" name="05101769413c7b784a19363b93432fa4"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::local_address_" ref="05101769413c7b784a19363b93432fa4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ACE_INET_Addr <a class="el" href="a00684.html#05101769413c7b784a19363b93432fa4">OpenDDS::DCPS::SimpleTcpConnection::local_address_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Local address. 
<p>

</div>
</div><p>
<a class="anchor" name="1e0689b88b2d72cc5ee4abd1c3d3e652"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::new_con_" ref="1e0689b88b2d72cc5ee4abd1c3d3e652" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00639.html">SimpleTcpConnection_rch</a> <a class="el" href="a00684.html#1e0689b88b2d72cc5ee4abd1c3d3e652">OpenDDS::DCPS::SimpleTcpConnection::new_con_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
TODO: This can be removed since we do not need it for checking the the new connection state during handle_timeout. The "new" <a class="el" href="a00684.html">SimpleTcpConnection</a> that replaces this "old" object in the <a class="el" href="a00686.html">SimpleTcpDataLink</a> object. This is needed for checking if the connection is re-established as the acceptor side when timer goes off. 
</div>
</div><p>
<a class="anchor" name="61050f0ce2f0e955e13771032f58df8a"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::old_con_" ref="61050f0ce2f0e955e13771032f58df8a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00639.html">SimpleTcpConnection_rch</a> <a class="el" href="a00684.html#61050f0ce2f0e955e13771032f58df8a">OpenDDS::DCPS::SimpleTcpConnection::old_con_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Keep a copy of the old connection object in the new connection object to help control of the old connection object deletion. 
</div>
</div><p>
<a class="anchor" name="3fa8408f0d1dea08a4585d5d2088cb73"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::passive_reconnect_timer_id_" ref="3fa8408f0d1dea08a4585d5d2088cb73" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="a00684.html#3fa8408f0d1dea08a4585d5d2088cb73">OpenDDS::DCPS::SimpleTcpConnection::passive_reconnect_timer_id_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The id of the scheduled timer. The timer is scheduled to check if the connection is re-established during the passive_reconnect_duration_. This id controls that the timer is just scheduled once when there are multiple threads detect the lost connection. 
</div>
</div><p>
<a class="anchor" name="c3895ecfec460f453742fde37f771d6b"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::receive_strategy_" ref="c3895ecfec460f453742fde37f771d6b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00639.html">TransportReceiveStrategy_rch</a> <a class="el" href="a00684.html#c3895ecfec460f453742fde37f771d6b">OpenDDS::DCPS::SimpleTcpConnection::receive_strategy_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Reference to the receiving strategy. 
<p>

</div>
</div><p>
<a class="anchor" name="0e8dacf34573670c33e3597c82e642df"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::reconnect_lock_" ref="0e8dacf34573670c33e3597c82e642df" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00684.html#028e81c1a88c02e1d7ec622e84af6444">LockType</a> <a class="el" href="a00684.html#0e8dacf34573670c33e3597c82e642df">OpenDDS::DCPS::SimpleTcpConnection::reconnect_lock_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Lock to avoid the <a class="el" href="a00684.html#ce63828c0a05628fc433576d067bca49">reconnect()</a> called multiple times when both send() and recv() fail. 
</div>
</div><p>
<a class="anchor" name="1d5a555406753a14ba820f0889b43178"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::reconnect_state_" ref="1d5a555406753a14ba820f0889b43178" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00684.html#1eafb4323b4d5ae00f4b9c8917252c40">ReconnectState</a> <a class="el" href="a00684.html#1d5a555406753a14ba820f0889b43178">OpenDDS::DCPS::SimpleTcpConnection::reconnect_state_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The state indicates each step of the reconnecting. 
<p>

</div>
</div><p>
<a class="anchor" name="dceb49b704d5e9630400b3bef056b1ce"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::reconnect_task_" ref="dceb49b704d5e9630400b3bef056b1ce" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00690.html">SimpleTcpReconnectTask</a> <a class="el" href="a00684.html#dceb49b704d5e9630400b3bef056b1ce">OpenDDS::DCPS::SimpleTcpConnection::reconnect_task_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The task to do the reconnecting. TODO: We might need reuse the <a class="el" href="a00617.html">PerConnectionSynch</a> thread to do the reconnecting or create the reconnect task when we need reconnect. 
</div>
</div><p>
<a class="anchor" name="3dd5aa7d35f8d5976a327bb35810d797"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::remote_address_" ref="3dd5aa7d35f8d5976a327bb35810d797" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ACE_INET_Addr <a class="el" href="a00684.html#3dd5aa7d35f8d5976a327bb35810d797">OpenDDS::DCPS::SimpleTcpConnection::remote_address_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Remote address. 
<p>

</div>
</div><p>
<a class="anchor" name="716da7e495a729680f55e04427843eb9"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::send_strategy_" ref="716da7e495a729680f55e04427843eb9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00639.html">SimpleTcpSendStrategy_rch</a> <a class="el" href="a00684.html#716da7e495a729680f55e04427843eb9">OpenDDS::DCPS::SimpleTcpConnection::send_strategy_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Reference to the send strategy. 
<p>

</div>
</div><p>
<a class="anchor" name="20b280ab00d799d1edd6d8e558edff35"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::shutdown_" ref="20b280ab00d799d1edd6d8e558edff35" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="a00684.html#20b280ab00d799d1edd6d8e558edff35">OpenDDS::DCPS::SimpleTcpConnection::shutdown_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
shutdown flag 
<p>

</div>
</div><p>
<a class="anchor" name="bfade3e9f02d37669fd5db709ed6d080"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::tcp_config_" ref="bfade3e9f02d37669fd5db709ed6d080" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00639.html">SimpleTcpConfiguration_rch</a> <a class="el" href="a00684.html#bfade3e9f02d37669fd5db709ed6d080">OpenDDS::DCPS::SimpleTcpConnection::tcp_config_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The configuration used by this connection. 
<p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a01083.html">SimpleTcpConnection.h</a><li><a class="el" href="a01082.html">SimpleTcpConnection.cpp</a><li><a class="el" href="a01084.html">SimpleTcpConnection.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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -