📄 class_hello_server.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"><title>libpion: HelloServer 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.5.2 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div><h1>HelloServer Class Reference</h1><!-- doxytag: class="HelloServer" --><!-- doxytag: inherits="pion::TCPServer" -->Inherits <a class="el" href="classpion_1_1_t_c_p_server.html">pion::TCPServer</a>.<p><a href="class_hello_server-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>simple TCP server that just sends "Hello there!" to each connection <p><p>Definition at line <a class="el" href="_pion_server_test_8cpp-source.html#l00045">45</a> of file <a class="el" href="_pion_server_test_8cpp-source.html">PionServerTest.cpp</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"><a class="anchor" name="7417b37a77beb236800e206faf176179"></a><!-- doxytag: member="HelloServer::HelloServer" ref="7417b37a77beb236800e206faf176179" args="(const unsigned int tcp_port)" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_hello_server.html#7417b37a77beb236800e206faf176179">HelloServer</a> (const unsigned int tcp_port)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="beb2e9711c16bd44c16d442fd9203f88"></a><!-- doxytag: member="HelloServer::~HelloServer" ref="beb2e9711c16bd44c16d442fd9203f88" args="()" -->virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_hello_server.html#beb2e9711c16bd44c16d442fd9203f88">~HelloServer</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_hello_server.html#8c81bf75f204891b55b6a730d934e4e1">handleConnection</a> (TCPConnectionPtr &conn)</td></tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="8c81bf75f204891b55b6a730d934e4e1"></a><!-- doxytag: member="HelloServer::handleConnection" ref="8c81bf75f204891b55b6a730d934e4e1" args="(TCPConnectionPtr &conn)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void HelloServer::handleConnection </td> <td>(</td> <td class="paramtype">TCPConnectionPtr & </td> <td class="paramname"> <em>tcp_conn</em> </td> <td> ) </td> <td width="100%"><code> [inline, virtual]</code></td> </tr> </table></div><div class="memdoc"><p>handles a new TCP connection; derived classes SHOULD override this since the default behavior does nothing<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>tcp_conn</em> </td><td>the new TCP connection to handle </td></tr> </table></dl><p>Reimplemented from <a class="el" href="classpion_1_1_t_c_p_server.html#bdf3bb235cf282e635dcd620fe17f448">pion::TCPServer</a>.<p>Definition at line <a class="el" href="_pion_server_test_8cpp-source.html#l00049">49</a> of file <a class="el" href="_pion_server_test_8cpp-source.html">PionServerTest.cpp</a>.</div></div><p><hr>The documentation for this class was generated from the following file:<ul><li>/Users/mdickey/code/libpion-export/tests/<a class="el" href="_pion_server_test_8cpp-source.html">PionServerTest.cpp</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 + -