📄 globalvariables_8h.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>globalvariables.h 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/include/inet/globalvariables.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2> <dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@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.7.2002</dl>Here are declarations of global variables that are commonly used in other OpenTCP modules as well as OpenTCP applications in general. Basically just a bunch of externs.<p><p>Definition in file <a class="el" href="globalvariables_8h-source.html">globalvariables.h</a>.<p><a href="globalvariables_8h-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>Variables</h2></td></tr><tr><td nowrap align=right valign=top>UINT8 </td><td valign=bottom><a class="el" href="globalvariables_8h.html#a0">NE2000NextPktPtr</a></td></tr><tr><td nowrap align=right valign=top>UINT8 </td><td valign=bottom><a class="el" href="globalvariables_8h.html#a1">NE2000CurrPktPtr</a></td></tr><tr><td nowrap align=right valign=top>UINT32 </td><td valign=bottom><a class="el" href="globalvariables_8h.html#a2">base_timer</a></td></tr><tr><td nowrap align=right valign=top>UINT8 </td><td valign=bottom><a class="el" href="globalvariables_8h.html#a3">net_buf</a> []</td></tr><tr><td> </td><td><font size=-1><em>Transmit buffer used by all OpenTCP applications.</em> <a href="#a3"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a class="el" href="structethernet__frame.html">ethernet_frame</a> </td><td valign=bottom><a class="el" href="globalvariables_8h.html#a4">received_frame</a></td></tr><tr><td> </td><td><font size=-1><em>Used for storing various information about the received Ethernet frame.</em> <a href="#a4"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a class="el" href="structethernet__frame.html">ethernet_frame</a> </td><td valign=bottom><a class="el" href="globalvariables_8h.html#a5">send_frame</a></td></tr><tr><td> </td><td><font size=-1><em>Used for storing various information about the Ethernet frame that will be sent.</em> <a href="#a5"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a class="el" href="structnetif.html">netif</a> </td><td valign=bottom><a class="el" href="globalvariables_8h.html#a6">localmachine</a></td></tr><tr><td nowrap align=right valign=top><a class="el" href="structip__frame.html">ip_frame</a> </td><td valign=bottom><a class="el" href="globalvariables_8h.html#a7">received_ip_packet</a></td></tr><tr><td> </td><td><font size=-1><em>Used for storing various information about the incoming IP packet.</em> <a href="#a7"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a class="el" href="structip__frame.html">ip_frame</a> </td><td valign=bottom><a class="el" href="globalvariables_8h.html#a8">send_ip_packet</a></td></tr><tr><td> </td><td><font size=-1><em>Used for storing various information about the outgoing IP packet.</em> <a href="#a8"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a class="el" href="structudp__frame.html">udp_frame</a> </td><td valign=bottom><a class="el" href="globalvariables_8h.html#a9">received_udp_packet</a></td></tr><tr><td> </td><td><font size=-1><em>Used for storing field information about the received UDP packet.</em> <a href="#a9"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a class="el" href="structtcp__frame.html">tcp_frame</a> </td><td valign=bottom><a class="el" href="globalvariables_8h.html#a10">received_tcp_packet</a></td></tr><tr><td> </td><td><font size=-1><em>Used for storing field information about the received TCP packet.</em> <a href="#a10"></a><em></em></font><br><br></td></tr></table><hr><h2>Variable Documentation</h2><a name="a0" doxytag="globalvariables.h::NE2000NextPktPtr"></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 NE2000NextPktPtr </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Start address of next packet in the Ethernet controller <p>Definition at line <a class="el" href="globalvariables_8h-source.html#l00074">74</a> of file <a class="el" href="globalvariables_8h-source.html">globalvariables.h</a>. </td> </tr></table><a name="a1" doxytag="globalvariables.h::NE2000CurrPktPtr"></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 NE2000CurrPktPtr </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Start address of current packet in the Ethernet controller <p>Definition at line <a class="el" href="globalvariables_8h-source.html#l00075">75</a> of file <a class="el" href="globalvariables_8h-source.html">globalvariables.h</a>. </td> </tr></table><a name="a2" doxytag="globalvariables.h::base_timer"></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"> UINT32 base_timer </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>System 1.024 msec timer <p>Definition at line <a class="el" href="globalvariables_8h-source.html#l00077">77</a> of file <a class="el" href="globalvariables_8h-source.html">globalvariables.h</a>. </td> </tr></table><a name="a3" doxytag="globalvariables.h::net_buf"></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 net_buf[] </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This buffer is the transmit buffer used by all OpenTCP applications for sending of data. Please note the warnings below for correct usage of this buffer that ensures proper operation of the applications.<p><dl compact><dt><b>Warning: </b></dt><dd> <ul><li> <b>Transmit buffer start</b> - to avoid data copying, the TCP/IP stack will use first part of the net_buf buffer to add it's data. This means that applications using TCP and/or UDP <b>must not</b> write application-level data from the beginning of the buffer but from certain offset. This offset depends on the transport-layer protocol (it's header size that is). For TCP this value is defined by the TCP_APP_OFFSET and for the UDP it is UDP_APP_OFFSET. <li> <b>Buffer sharing</b> - since all applications share this buffer among each other, and with the TCP/IP stack as well, care must be taken not to overwrite other applications' data before it is sent. This is best achieved if all applications work in the main loop and when they wish to send data they fill in the buffer and send it immediately. </ul></dl><p>Definition at line <a class="el" href="globalvariables_8h-source.html#l00080">80</a> of file <a class="el" href="globalvariables_8h-source.html">globalvariables.h</a>. </td> </tr></table><a name="a4" doxytag="globalvariables.h::received_frame"></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 <a class="el" href="structethernet__frame.html">ethernet_frame</a> received_frame </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -