📄 tcp__server__demo_8c.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>tcp_server_demo.c File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="main.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindex" href="examples.html">Examples</a> </center><hr><h1>/opentcp/demo/tcp_server_demo.c File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2> <dl compact><dt><b>Author: </b></dt><dd> <ul><li> Vladan Jovanovic (<a href="mailto:vladan.jovanovic@violasystems.com">vladan.jovanovic@violasystems.com</a>) </ul></dl><dl compact><dt><b>Version: </b></dt><dd>1.0 </dl><dl compact><dt><b>Date: </b></dt><dd>10.10.2002 </dl><dl compact><dt><b><a class="el" href="bug.html#_bug000007">Bug: </a></b></dt><dd></dl> <dl compact><dt><b>Warning: </b></dt><dd> <ul><li> This example is given for demonstration purposes only. It was not tested for correct operation. </ul></dl><dl compact><dt><b><a class="el" href="todo.html#_todo000007">Todo: </a></b></dt><dd></dl><p>Blank TCP demo application showing TCP functions and how applications might use them. Please note that this is an example for a TCP server application - the kind of application that waits for a connection and does not initiate connection establishment towards other hosts.<p><p>Definition in file <a class="el" href="tcp__server__demo_8c-source.html">tcp_server_demo.c</a>.<p><a href="tcp__server__demo_8c-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Defines</h2></td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="tcp__server__demo_8c.html#a0">TCPS_DEMO_PORT</a> 5001</td></tr><tr><td colspan=2><br><h2>Variables</h2></td></tr><tr><td nowrap align=right valign=top>INT8 </td><td valign=bottom><a class="el" href="tcp__server__demo_8c.html#a1">tcps_demo_soch</a></td></tr><tr><td> </td><td><font size=-1><em>Socket handle holder for this application.</em> <a href="#a1"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>UINT8 </td><td valign=bottom><a class="el" href="tcp__server__demo_8c.html#a2">tcps_demo_senddata</a></td></tr></table><hr><h2>Define Documentation</h2><a name="a0" doxytag="tcp_server_demo.c::TCPS_DEMO_PORT"></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"> #define TCPS_DEMO_PORT 5001 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Port number on which we'll be listening for incoming connections <p>Definition at line <a class="el" href="tcp__server__demo_8c-source.html#l00102">102</a> of file <a class="el" href="tcp__server__demo_8c-source.html">tcp_server_demo.c</a>. </td> </tr></table><hr><h2>Variable Documentation</h2><a name="a1" doxytag="tcp_server_demo.c::tcps_demo_soch"></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"> INT8 tcps_demo_soch </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This variable holds the assigned socket handle. Note that this application will reserve one TCP socket immediately and will not release it. For saving resources, TCP sockets can also be allocated/deallocated dynamically. <p>Definition at line <a class="el" href="tcp__server__demo_8c-source.html#l00098">98</a> of file <a class="el" href="tcp__server__demo_8c-source.html">tcp_server_demo.c</a>. </td> </tr></table><a name="a2" doxytag="tcp_server_demo.c::tcps_demo_senddata"></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"> UINT8 tcps_demo_senddata </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Used to trigger data sending <p>Definition at line <a class="el" href="tcp__server__demo_8c-source.html#l00100">100</a> of file <a class="el" href="tcp__server__demo_8c-source.html">tcp_server_demo.c</a>. </td> </tr></table><hr><address style="align: right;"><small>Generated on Sun Aug 3 20:33:00 2003 for OpenTCP by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -