📄 tcp__client__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_client_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_client_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#_bug000006">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#_todo000006">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 client application - the kind of application that initiates communication and does not accept incoming connections.<p><p>Definition in file <a class="el" href="tcp__client__demo_8c-source.html">tcp_client_demo.c</a>.<p><a href="tcp__client__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__client__demo_8c.html#a0">TCPC_DEMO_RMT_IP</a> 0xAC100101</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="tcp__client__demo_8c.html#a1">TCPC_DEMO_RMT_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__client__demo_8c.html#a2">tcpc_demo_soch</a></td></tr><tr><td> </td><td><font size=-1><em>Socket handle holder for this application.</em> <a href="#a2"></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__client__demo_8c.html#a3">tcpc_demo_senddata</a></td></tr><tr><td nowrap align=right valign=top>UINT8 </td><td valign=bottom><a class="el" href="tcp__client__demo_8c.html#a4">tcpc_demo_connect</a></td></tr></table><hr><h2>Define Documentation</h2><a name="a0" doxytag="tcp_client_demo.c::TCPC_DEMO_RMT_IP"></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 TCPC_DEMO_RMT_IP 0xAC100101 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Remote IP address this application will connect to <p>Definition at line <a class="el" href="tcp__client__demo_8c-source.html#l00105">105</a> of file <a class="el" href="tcp__client__demo_8c-source.html">tcp_client_demo.c</a>. </td> </tr></table><a name="a1" doxytag="tcp_client_demo.c::TCPC_DEMO_RMT_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 TCPC_DEMO_RMT_PORT 5001 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Port number on remote server we'll connect to <p>Definition at line <a class="el" href="tcp__client__demo_8c-source.html#l00106">106</a> of file <a class="el" href="tcp__client__demo_8c-source.html">tcp_client_demo.c</a>. </td> </tr></table><hr><h2>Variable Documentation</h2><a name="a2" doxytag="tcp_client_demo.c::tcpc_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 tcpc_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__client__demo_8c-source.html#l00099">99</a> of file <a class="el" href="tcp__client__demo_8c-source.html">tcp_client_demo.c</a>. </td> </tr></table><a name="a3" doxytag="tcp_client_demo.c::tcpc_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 tcpc_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__client__demo_8c-source.html#l00101">101</a> of file <a class="el" href="tcp__client__demo_8c-source.html">tcp_client_demo.c</a>. </td> </tr></table><a name="a4" doxytag="tcp_client_demo.c::tcpc_demo_connect"></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 tcpc_demo_connect </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Used to trigger connection initiation to remote host <p>Definition at line <a class="el" href="tcp__client__demo_8c-source.html#l00103">103</a> of file <a class="el" href="tcp__client__demo_8c-source.html">tcp_client_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 + -