📄 classpion_1_1_t_c_p_connection.html
字号:
<td class="paramtype"><a class="el" href="classpion_1_1_t_c_p_connection.html#028b488e4cf66b86d7de3caa2e31c67d">ConnectionHandler</a> </td> <td class="paramname"> <em>finished_handler</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline, protected]</code></td> </tr> </table></div><div class="memdoc"><p>protected constructor restricts creation of objects (use <a class="el" href="classpion_1_1_t_c_p_connection.html#7a2e7e30840b48f7659a1c75d51a9f52">create()</a>)<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>io_service</em> </td><td>asio service associated with the connection </td></tr> <tr><td valign="top"></td><td valign="top"><em>ssl_context</em> </td><td>asio ssl context associated with the connection </td></tr> <tr><td valign="top"></td><td valign="top"><em>ssl_flag</em> </td><td>if true then the connection will be encrypted using SSL </td></tr> <tr><td valign="top"></td><td valign="top"><em>finished_handler</em> </td><td>function called when a server has finished handling the connection </td></tr> </table></dl><p>Definition at line <a class="el" href="_t_c_p_connection_8hpp-source.html#l00117">117</a> of file <a class="el" href="_t_c_p_connection_8hpp-source.html">TCPConnection.hpp</a>.<p>Referenced by <a class="el" href="_t_c_p_connection_8hpp-source.html#l00064">create()</a>.</div></div><p><hr><h2>Member Function Documentation</h2><a class="anchor" name="7a2e7e30840b48f7659a1c75d51a9f52"></a><!-- doxytag: member="pion::TCPConnection::create" ref="7a2e7e30840b48f7659a1c75d51a9f52" args="(boost::asio::io_service &io_service, SSLContext &ssl_context, const bool ssl_flag, ConnectionHandler finished_handler)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">static boost::shared_ptr<<a class="el" href="classpion_1_1_t_c_p_connection.html">TCPConnection</a>> pion::TCPConnection::create </td> <td>(</td> <td class="paramtype">boost::asio::io_service & </td> <td class="paramname"> <em>io_service</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classpion_1_1_t_c_p_connection.html#7847013e92aa594ac6a7ce9d8ceaf1c2">SSLContext</a> & </td> <td class="paramname"> <em>ssl_context</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const bool </td> <td class="paramname"> <em>ssl_flag</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classpion_1_1_t_c_p_connection.html#028b488e4cf66b86d7de3caa2e31c67d">ConnectionHandler</a> </td> <td class="paramname"> <em>finished_handler</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline, static]</code></td> </tr> </table></div><div class="memdoc"><p>creates new <a class="el" href="classpion_1_1_t_c_p_connection.html">TCPConnection</a> objects<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>io_service</em> </td><td>asio service associated with the connection </td></tr> <tr><td valign="top"></td><td valign="top"><em>ssl_context</em> </td><td>asio ssl context associated with the connection </td></tr> <tr><td valign="top"></td><td valign="top"><em>ssl_flag</em> </td><td>if true then the connection will be encrypted using SSL </td></tr> <tr><td valign="top"></td><td valign="top"><em>finished_handler</em> </td><td>function called when a server has finished handling the connection </td></tr> </table></dl><p>Definition at line <a class="el" href="_t_c_p_connection_8hpp-source.html#l00064">64</a> of file <a class="el" href="_t_c_p_connection_8hpp-source.html">TCPConnection.hpp</a>.<p>References <a class="el" href="_t_c_p_connection_8hpp-source.html#l00117">TCPConnection()</a>.</div></div><p><a class="anchor" name="5a83ed775fcb99cbcce42dd109ad06d4"></a><!-- doxytag: member="pion::TCPConnection::finish" ref="5a83ed775fcb99cbcce42dd109ad06d4" args="(void)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void pion::TCPConnection::finish </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [inline]</code></td> </tr> </table></div><div class="memdoc"><p>This function must be called when a server has finished handling the connection <p>Definition at line <a class="el" href="_t_c_p_connection_8hpp-source.html#l00088">88</a> of file <a class="el" href="_t_c_p_connection_8hpp-source.html">TCPConnection.hpp</a>.</div></div><p><hr>The documentation for this class was generated from the following file:<ul><li>/Users/mdickey/code/libpion-export/include/libpion/<a class="el" href="_t_c_p_connection_8hpp-source.html">TCPConnection.hpp</a></ul><hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 19 13:29:23 2007 for libpion by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -