📄 udp__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>udp_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/udp_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#_bug000008">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#_todo000008">Todo: </a></b></dt><dd></dl><p>Blank UDP demo application showing UDP functions and how applications might use them.<p><p>Definition in file <a class="el" href="udp__demo_8c-source.html">udp_demo.c</a>.<p><a href="udp__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="udp__demo_8c.html#a0">UDP_DEMO_PORT</a> 5000</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="udp__demo_8c.html#a1">UDP_DEMO_RMTHOST_IP</a> 0xAC100101</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="udp__demo_8c.html#a2">UDP_DEMO_RMTHOST_PRT</a> 5001</td></tr><tr><td colspan=2><br><h2>Variables</h2></td></tr><tr><td nowrap align=right valign=top>UINT8 </td><td valign=bottom><a class="el" href="udp__demo_8c.html#a4">udp_demo_soch</a></td></tr><tr><td> </td><td><font size=-1><em>Socket handle holder for this application.</em> <a href="#a4"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>UINT8 </td><td valign=bottom><a class="el" href="udp__demo_8c.html#a5">udp_demo_senddata</a></td></tr></table><hr><h2>Define Documentation</h2><a name="a0" doxytag="udp_demo.c::UDP_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 UDP_DEMO_PORT 5000 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Port number on which we'll work <p>Definition at line <a class="el" href="udp__demo_8c-source.html#l00099">99</a> of file <a class="el" href="udp__demo_8c-source.html">udp_demo.c</a>. </td> </tr></table><a name="a1" doxytag="udp_demo.c::UDP_DEMO_RMTHOST_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 UDP_DEMO_RMTHOST_IP 0xAC100101 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Remote IP address this application will send data to <p>Definition at line <a class="el" href="udp__demo_8c-source.html#l00101">101</a> of file <a class="el" href="udp__demo_8c-source.html">udp_demo.c</a>. </td> </tr></table><a name="a2" doxytag="udp_demo.c::UDP_DEMO_RMTHOST_PRT"></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 UDP_DEMO_RMTHOST_PRT 5001 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Port number on remote server we'll send data to <p>Definition at line <a class="el" href="udp__demo_8c-source.html#l00103">103</a> of file <a class="el" href="udp__demo_8c-source.html">udp_demo.c</a>. </td> </tr></table><hr><h2>Variable Documentation</h2><a name="a4" doxytag="udp_demo.c::udp_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"> UINT8 udp_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 UDP socket immediately and will not release it. For saving resources, UDP sockets can also be allocated/deallocated dynamically. <p>Definition at line <a class="el" href="udp__demo_8c-source.html#l00095">95</a> of file <a class="el" href="udp__demo_8c-source.html">udp_demo.c</a>. </td> </tr></table><a name="a5" doxytag="udp_demo.c::udp_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 udp_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="udp__demo_8c-source.html#l00097">97</a> of file <a class="el" href="udp__demo_8c-source.html">udp_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 + -