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

📄 a00685.html

📁 opendds 1.2 最新版 面向分布式实时网络编程
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>OpenDDS: OpenDDS::DCPS::SimpleTcpConnectionReplaceTask Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li id="current"><a href="classes.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="dirs.html"><span>Directories</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <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="nav">
<a class="el" href="a01301.html">OpenDDS</a>::<a class="el" href="a01275.html">DCPS</a>::<a class="el" href="a00685.html">SimpleTcpConnectionReplaceTask</a></div>
<h1>OpenDDS::DCPS::SimpleTcpConnectionReplaceTask Class Reference</h1><!-- doxytag: class="OpenDDS::DCPS::SimpleTcpConnectionReplaceTask" --><!-- doxytag: inherits="OpenDDS::DCPS::QueueTaskBase" -->Active Object managing a queue of connection info objects.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;SimpleTcpConnectionReplaceTask.h&gt;</code>
<p>
Inheritance diagram for OpenDDS::DCPS::SimpleTcpConnectionReplaceTask:<p><center><img src="a02947.png" border="0" usemap="#a02948" alt="Inheritance graph"></center>
<map name="a02948">
<area href="a00638.html" shape="rect" coords="5,82,624,106" alt="">
<area href="a00466.html" shape="rect" coords="253,7,376,31" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for OpenDDS::DCPS::SimpleTcpConnectionReplaceTask:<p><center><img src="a02949.png" border="0" usemap="#a02950" alt="Collaboration graph"></center>
<map name="a02950">
<area href="a00693.html" shape="rect" coords="183,175,447,199" alt="">
<area href="a00638.html" shape="rect" coords="5,7,624,31" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="a00145.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="a00685.html#c6edadc37e2010d5480e639b2b4f16f8">SimpleTcpConnectionReplaceTask</a> (<a class="el" href="a00693.html">SimpleTcpTransport</a> *trans)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#c6edadc37e2010d5480e639b2b4f16f8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00685.html#90edf05c48a9dd32ab43c664e7482067">~SimpleTcpConnectionReplaceTask</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Virtual Destructor.  <a href="#90edf05c48a9dd32ab43c664e7482067"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00685.html#94a3220743db58c3d50eca44dd6961fe">execute</a> (<a class="el" href="a00639.html">SimpleTcpConnection_rch</a> &amp;con)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Handle the request.  <a href="#94a3220743db58c3d50eca44dd6961fe"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a00693.html">SimpleTcpTransport</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00685.html#9260c563e07e90695401fa95394c9233">trans_</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Active Object managing a queue of connection info objects. 
<p>
This task is dedicated to check if the incoming connections are re-established connection from the remote. This would resolve the deadlock problem between the reactor thread (calling SimpleTcpTransport::passive_connction()) and the orb thread (calling SimpleTcpTransport::make_passive_connction()). The reactor thread will enqueue the new connection to this task and let this task dequeue and check the connection. This task handles all connections associated with a <a class="el" href="a00746.html">TransportImpl</a> object. 
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="c6edadc37e2010d5480e639b2b4f16f8"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnectionReplaceTask::SimpleTcpConnectionReplaceTask" ref="c6edadc37e2010d5480e639b2b4f16f8" args="(SimpleTcpTransport *trans)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OpenDDS::DCPS::SimpleTcpConnectionReplaceTask::SimpleTcpConnectionReplaceTask           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00693.html">SimpleTcpTransport</a> *&nbsp;</td>
          <td class="paramname"> <em>trans</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor. 
<p>

</div>
</div><p>
<a class="anchor" name="90edf05c48a9dd32ab43c664e7482067"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnectionReplaceTask::~SimpleTcpConnectionReplaceTask" ref="90edf05c48a9dd32ab43c664e7482067" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OpenDDS::DCPS::SimpleTcpConnectionReplaceTask::~SimpleTcpConnectionReplaceTask           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Virtual Destructor. 
<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="94a3220743db58c3d50eca44dd6961fe"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnectionReplaceTask::execute" ref="94a3220743db58c3d50eca44dd6961fe" args="(SimpleTcpConnection_rch &amp;con)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OpenDDS::DCPS::SimpleTcpConnectionReplaceTask::execute           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00639.html">SimpleTcpConnection_rch</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>con</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Handle the request. 
<p>

</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="9260c563e07e90695401fa95394c9233"></a><!-- doxytag: member="OpenDDS::DCPS::SimpleTcpConnectionReplaceTask::trans_" ref="9260c563e07e90695401fa95394c9233" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00693.html">SimpleTcpTransport</a>* <a class="el" href="a00685.html#9260c563e07e90695401fa95394c9233">OpenDDS::DCPS::SimpleTcpConnectionReplaceTask::trans_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a01087.html">SimpleTcpConnectionReplaceTask.h</a><li><a class="el" href="a01086.html">SimpleTcpConnectionReplaceTask.cpp</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 + -