a00684.html
来自「opendds 1.2 最新版 面向分布式实时网络编程」· HTML 代码 · 共 1,115 行 · 第 1/4 页
HTML
1,115 行
<td class="memname">ACE_INLINE bool OpenDDS::DCPS::SimpleTcpConnection::is_connector </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Return true if the object represents the connector side, otherwise it's the acceptor side. The acceptor/connector role is not changed when re-establishing the connection.
</div>
</div><p>
<a class="anchor" name="912e5f0e2e1e6c3e9a1367894dc20b03"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::notify_lost_on_backpressure_timeout" ref="912e5f0e2e1e6c3e9a1367894dc20b03" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void OpenDDS::DCPS::SimpleTcpConnection::notify_lost_on_backpressure_timeout </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function is called when the backpresure occurs and timed out after "max_output_pause_period". The lost connection notification should be sent and the connection needs be closed since we declared it as a "lost" connection.
</div>
</div><p>
<a class="anchor" name="82d7797c68b0140dd34be6ff260d7c51"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::open" ref="82d7797c68b0140dd34be6ff260d7c51" args="(void *arg)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int OpenDDS::DCPS::SimpleTcpConnection::open </td>
<td>(</td>
<td class="paramtype">void * </td>
<td class="paramname"> <em>arg</em> </td>
<td> ) </td>
<td width="100%"><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="e1f1679d42ba820c09b2a5db6f82a87a"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::passive_reconnect_i" ref="e1f1679d42ba820c09b2a5db6f82a87a" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int OpenDDS::DCPS::SimpleTcpConnection::passive_reconnect_i </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [private]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="ce63828c0a05628fc433576d067bca49"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::reconnect" ref="ce63828c0a05628fc433576d067bca49" args="(bool on_new_association=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int OpenDDS::DCPS::SimpleTcpConnection::reconnect </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>on_new_association</em> = <code>false</code> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This function is called to re-establish the connection. If this object is the connector side of the connection then it tries to reconnect to the remote, if it's the acceptor side of the connection then it schedules a timer to check if it passively accepted a connection from remote. The on_new_association true indicates this is called when the connection is previous lost and new association is added. The connector side needs to try to actively reconnect to remote.
</div>
</div><p>
<a class="anchor" name="d9b60dbd55bf4d6095d3110652cb279b"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::relink" ref="d9b60dbd55bf4d6095d3110652cb279b" args="(bool do_suspend)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void OpenDDS::DCPS::SimpleTcpConnection::relink </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>do_suspend</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
This is called by both <a class="el" href="a00691.html">SimpleTcpSendStrategy</a> and <a class="el" href="a00689.html">SimpleTcpReceiveStrategy</a> when lost connection is detected. This method handles the connection to the reactor task to do the reconnecting.
</div>
</div><p>
<a class="anchor" name="be507ea3ccd9fee870218caca445d129"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::remove_receive_strategy" ref="be507ea3ccd9fee870218caca445d129" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ACE_INLINE void OpenDDS::DCPS::SimpleTcpConnection::remove_receive_strategy </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="9a2acbd1336cff790c6552aaa02cb295"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::remove_send_strategy" ref="9a2acbd1336cff790c6552aaa02cb295" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ACE_INLINE void OpenDDS::DCPS::SimpleTcpConnection::remove_send_strategy </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="f44549b54b4b8ef5ab1a40375389a32e"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::set_datalink" ref="f44549b54b4b8ef5ab1a40375389a32e" args="(SimpleTcpDataLink *link)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ACE_INLINE void OpenDDS::DCPS::SimpleTcpConnection::set_datalink </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00686.html">SimpleTcpDataLink</a> * </td>
<td class="paramname"> <em>link</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Cache the reference to the datalink object for lost connection callbacks.
</div>
</div><p>
<a class="anchor" name="147f374ac5720edbfb15b840b31379f8"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::set_receive_strategy" ref="147f374ac5720edbfb15b840b31379f8" args="(TransportReceiveStrategy *receive_strategy)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void OpenDDS::DCPS::SimpleTcpConnection::set_receive_strategy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00754.html">TransportReceiveStrategy</a> * </td>
<td class="paramname"> <em>receive_strategy</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="0df3a0169bad670d726ff39901a033d9"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::set_send_strategy" ref="0df3a0169bad670d726ff39901a033d9" args="(SimpleTcpSendStrategy *send_strategy)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void OpenDDS::DCPS::SimpleTcpConnection::set_send_strategy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00691.html">SimpleTcpSendStrategy</a> * </td>
<td class="paramname"> <em>send_strategy</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Give a "copy" of the <a class="el" href="a00691.html">SimpleTcpSendStrategy</a> object to this connection object.
</div>
</div><p>
<a class="anchor" name="9d349e31b52ead3a6ca7af514d385a1f"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::set_sock_options" ref="9d349e31b52ead3a6ca7af514d385a1f" args="(SimpleTcpConfiguration *tcp_config)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void OpenDDS::DCPS::SimpleTcpConnection::set_sock_options </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00683.html">SimpleTcpConfiguration</a> * </td>
<td class="paramname"> <em>tcp_config</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="b61644da7d8a83a2c513358ad7436537"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::shutdown" ref="b61644da7d8a83a2c513358ad7436537" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void OpenDDS::DCPS::SimpleTcpConnection::shutdown </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="7a57e7fc3abdfcb9c96e3154f4fbf7c4"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::tear_link" ref="7a57e7fc3abdfcb9c96e3154f4fbf7c4" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool OpenDDS::DCPS::SimpleTcpConnection::tear_link </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Called by the reconnect task to inform us that the link (& any associated data can be torn down. This call is done with no DCPS/transport locks held.
</div>
</div><p>
<a class="anchor" name="13ca82bfc81554ff88ff94afb9c63e57"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnection::transfer" ref="13ca82bfc81554ff88ff94afb9c63e57" args="(SimpleTcpConnection *connection)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void OpenDDS::DCPS::SimpleTcpConnection::transfer </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00684.html">SimpleTcpConnection</a> * </td>
<td class="paramname"> <em>connection</em> </td>
<td> ) </td>
<td width="100%"></td>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?