📄 structudp__frame.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_frame struct 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>udp_frame Struct Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>This structures' fields are used to hold information about the headers of the received UDP packet.<p>In addition to standard UDP header fields, buf_index field has been added allowing applications to re-read the received data many times by reinitializing reading based on the address stored in this field. <p><p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00488">488</a> of file <a class="el" href="tcp__ip_8h-source.html">tcp_ip.h</a>.<table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Data Fields</h2></td></tr><tr><td nowrap align=right valign=top>UINT16 </td><td valign=bottom><a class="el" href="structudp__frame.html#m0">sport</a></td></tr><tr><td nowrap align=right valign=top>UINT16 </td><td valign=bottom><a class="el" href="structudp__frame.html#m1">dport</a></td></tr><tr><td nowrap align=right valign=top>UINT16 </td><td valign=bottom><a class="el" href="structudp__frame.html#m2">tlen</a></td></tr><tr><td nowrap align=right valign=top>UINT16 </td><td valign=bottom><a class="el" href="structudp__frame.html#m3">checksum</a></td></tr><tr><td nowrap align=right valign=top>UINT16 </td><td valign=bottom><a class="el" href="structudp__frame.html#m4">buf_index</a></td></tr></table><hr><h2>Field Documentation</h2><a name="m0" doxytag="udp_frame::sport"></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"> UINT16 udp_frame::sport </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Source port <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00490">490</a> of file <a class="el" href="tcp__ip_8h-source.html">tcp_ip.h</a>.<p>Referenced by <a class="el" href="udp_8c-source.html#l00550">process_udp_in()</a>. </td> </tr></table><a name="m1" doxytag="udp_frame::dport"></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"> UINT16 udp_frame::dport </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Destination port <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00491">491</a> of file <a class="el" href="tcp__ip_8h-source.html">tcp_ip.h</a>.<p>Referenced by <a class="el" href="udp_8c-source.html#l00550">process_udp_in()</a>. </td> </tr></table><a name="m2" doxytag="udp_frame::tlen"></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"> UINT16 udp_frame::tlen </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>total len (UDP part) <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00492">492</a> of file <a class="el" href="tcp__ip_8h-source.html">tcp_ip.h</a>.<p>Referenced by <a class="el" href="udp_8c-source.html#l00550">process_udp_in()</a>. </td> </tr></table><a name="m3" doxytag="udp_frame::checksum"></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"> UINT16 udp_frame::checksum </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>UDP checksum <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00493">493</a> of file <a class="el" href="tcp__ip_8h-source.html">tcp_ip.h</a>.<p>Referenced by <a class="el" href="udp_8c-source.html#l00550">process_udp_in()</a>. </td> </tr></table><a name="m4" doxytag="udp_frame::buf_index"></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"> UINT16 udp_frame::buf_index </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Data offsett from the start of network buffer <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00494">494</a> of file <a class="el" href="tcp__ip_8h-source.html">tcp_ip.h</a>.<p>Referenced by <a class="el" href="udp_8c-source.html#l00550">process_udp_in()</a>. </td> </tr></table><hr>The documentation for this struct was generated from the following file:<ul><li>/opentcp/include/inet/<a class="el" href="tcp__ip_8h-source.html">tcp_ip.h</a></ul><hr><address style="align: right;"><small>Generated on Sun Aug 3 20:33:01 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 + -