📄 classserver.html
字号:
<p><dl compact><dt><b>Returns: </b><dd>recived string </dl><dl compact><dt><b>Author: </b><dd>Marcin Caban </dl><dl compact><dt><b>Date: </b><dd>Thu Jan 17 01:41:18 2002 </dl><p>Definition at line <a class="el" href="server_8cc-source.html#l00106">106</a> of file <a class="el" href="server_8cc-source.html">server.cc</a>.<p>References <a class="el" href="server_8h-source.html#l00098">recived</a>.<p>Referenced by <a class="el" href="serverDemo_8cc-source.html#l00063">serverDemo::start</a>(). </td> </tr></table><a name="b3" doxytag="server::listenTCP"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool server::listenTCP </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Starts listening for client, recives data from client on TCP port.<p><dl compact><dt><b>Returns: </b><dd>"true" if everything is OK or "false" if there is an error </dl><dl compact><dt><b><a class="el" href="todo.html#_todo000003">Todo: </a></b><dd>implenent this function (now it is just a copy of listenUDP)</dl> <dl compact><dt><b>Author: </b><dd>Marcin Caban </dl><dl compact><dt><b>Date: </b><dd>Thu Jan 17 01:41:18 2002 </dl><p>Definition at line <a class="el" href="server_8cc-source.html#l00086">86</a> of file <a class="el" href="server_8cc-source.html">server.cc</a>.<p>References <a class="el" href="const_8h-source.html#l00035">_NET_ERR_</a>, <a class="el" href="server_8h-source.html#l00104">addr</a>, <a class="el" href="server_8h-source.html#l00105">addr_len</a>, <a class="el" href="server_8cc-source.html#l00043">errno</a>, <a class="el" href="server_8h-source.html#l00098">recived</a>, <a class="el" href="server_8h-source.html#l00103">sock</a>, and <a class="el" href="server_8cc-source.html#l00044">sys_errlist</a>. </td> </tr></table><a name="b2" doxytag="server::listenUDP"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool server::listenUDP </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Starts listening for client, recives data from client on UDP port.<p><dl compact><dt><b>Returns: </b><dd>"true" if everything is OK or "false" if there is an error </dl><dl compact><dt><b>Author: </b><dd>Marcin Caban </dl><dl compact><dt><b>Date: </b><dd>Thu Jan 17 01:41:18 2002 </dl><p>Definition at line <a class="el" href="server_8cc-source.html#l00066">66</a> of file <a class="el" href="server_8cc-source.html">server.cc</a>.<p>References <a class="el" href="const_8h-source.html#l00035">_NET_ERR_</a>, <a class="el" href="server_8h-source.html#l00104">addr</a>, <a class="el" href="server_8h-source.html#l00105">addr_len</a>, <a class="el" href="server_8cc-source.html#l00043">errno</a>, <a class="el" href="server_8h-source.html#l00098">recived</a>, <a class="el" href="server_8h-source.html#l00103">sock</a>, and <a class="el" href="server_8cc-source.html#l00044">sys_errlist</a>.<p>Referenced by <a class="el" href="serverDemo_8cc-source.html#l00063">serverDemo::start</a>(). </td> </tr></table><hr><h2>Field Documentation</h2><a name="o2" doxytag="server::addr"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> struct sockaddr_in server::addr<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="server_8h-source.html#l00104">104</a> of file <a class="el" href="server_8h-source.html">server.h</a>.<p>Referenced by <a class="el" href="server_8cc-source.html#l00061">answer</a>(), <a class="el" href="server_8cc-source.html#l00086">listenTCP</a>(), and <a class="el" href="server_8cc-source.html#l00066">listenUDP</a>(). </td> </tr></table><a name="o3" doxytag="server::addr_len"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> socklen_t server::addr_len<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><p>Definition at line <a class="el" href="server_8h-source.html#l00105">105</a> of file <a class="el" href="server_8h-source.html">server.h</a>.<p>Referenced by <a class="el" href="server_8cc-source.html#l00061">answer</a>(), <a class="el" href="server_8cc-source.html#l00086">listenTCP</a>(), and <a class="el" href="server_8cc-source.html#l00066">listenUDP</a>(). </td> </tr></table><a name="o0" doxytag="server::recived"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> char* server::recived<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Last recived string.<p>Stores last recived data from a server. <p>Definition at line <a class="el" href="server_8h-source.html#l00098">98</a> of file <a class="el" href="server_8h-source.html">server.h</a>.<p>Referenced by <a class="el" href="server_8cc-source.html#l00106">get_recived</a>(), <a class="el" href="server_8cc-source.html#l00086">listenTCP</a>(), <a class="el" href="server_8cc-source.html#l00066">listenUDP</a>(), <a class="el" href="server_8cc-source.html#l00047">server</a>(), and <a class="el" href="server_8cc-source.html#l00053">~server</a>(). </td> </tr></table><a name="o1" doxytag="server::sock"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int server::sock<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Server socket.<p>Stores server socket. <p>Definition at line <a class="el" href="server_8h-source.html#l00103">103</a> of file <a class="el" href="server_8h-source.html">server.h</a>.<p>Referenced by <a class="el" href="server_8cc-source.html#l00061">answer</a>(), <a class="el" href="server_8cc-source.html#l00086">listenTCP</a>(), <a class="el" href="server_8cc-source.html#l00066">listenUDP</a>(), <a class="el" href="server_8cc-source.html#l00047">server</a>(), and <a class="el" href="server_8cc-source.html#l00053">~server</a>(). </td> </tr></table><hr><address><small>© 2002 Marcin Caban 'Cabko' and Borys Wisniewski 'Boria'</small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -