⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tcp__ip_8h.html

📁 Freescale mcu OpenTCP-1.0.4.doc.html.zip 文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
    </td>    <td><p>When this option is enabled, checksum is checked for all received UDP packets to check for transmission errors. <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00140">140</a> of file <a class="el" href="tcp__ip_8h-source.html">tcp_ip.h</a>.<p>Referenced by <a class="el" href="bootp_8c-source.html#l00108">bootpc_init()</a>, <a class="el" href="dhcpc_8c-source.html#l00158">dhcpc_init()</a>, <a class="el" href="dns_8c-source.html#l00108">dns_init()</a>, <a class="el" href="udp_8c-source.html#l00550">process_udp_in()</a>, <a class="el" href="tftps_8c-source.html#l00136">tftps_init()</a>, <a class="el" href="udp_8c-source.html#l00175">udp_getsocket()</a>, <a class="el" href="udp_8c-source.html#l00118">udp_init()</a>, and <a class="el" href="udp_8c-source.html#l00244">udp_releasesocket()</a>.    </td>  </tr></table><a name="a8" doxytag="tcp_ip.h::UDP_HLEN"></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_HLEN&nbsp;&nbsp;&nbsp;8      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>UDP Header Length <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00144">144</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>, and <a class="el" href="udp_8c-source.html#l00395">udp_send()</a>.    </td>  </tr></table><a name="a18" doxytag="tcp_ip.h::TCP_TOS_NORMAL"></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 TCP_TOS_NORMAL&nbsp;&nbsp;&nbsp;0      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This defines normal (and for now the only one implemented) type of service for the TCP socket. <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00214">214</a> of file <a class="el" href="tcp__ip_8h-source.html">tcp_ip.h</a>.<p>Referenced by <a class="el" href="http__server_8c-source.html#l00093">https_init()</a>, <a class="el" href="pop3__client_8c-source.html#l00148">pop3c_init()</a>, and <a class="el" href="smtp__client_8c-source.html#l00155">smtpc_init()</a>.    </td>  </tr></table><a name="a28" doxytag="tcp_ip.h::UDP_STATE_FREE"></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_STATE_FREE&nbsp;&nbsp;&nbsp;1      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>If an entry of ucb type has this as a state value, then it is free and can be allocated by the <a class="el" href="group__udp__app__api.html#a0">udp_getsocket()</a>. <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00249">249</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#l00175">udp_getsocket()</a>, <a class="el" href="udp_8c-source.html#l00118">udp_init()</a>, and <a class="el" href="udp_8c-source.html#l00244">udp_releasesocket()</a>.    </td>  </tr></table><a name="a29" doxytag="tcp_ip.h::UDP_STATE_CLOSED"></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_STATE_CLOSED&nbsp;&nbsp;&nbsp;2      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Entries of ucb type that have this as their state value were allocated by <a class="el" href="group__udp__app__api.html#a0">udp_getsocket()</a> but they are in the closed state, so no data can be received/sent through the socket. <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00258">258</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#l00340">udp_close()</a>, <a class="el" href="udp_8c-source.html#l00684">udp_getfreeport()</a>, and <a class="el" href="udp_8c-source.html#l00175">udp_getsocket()</a>.    </td>  </tr></table><a name="a30" doxytag="tcp_ip.h::UDP_STATE_OPENED"></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_STATE_OPENED&nbsp;&nbsp;&nbsp;3      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Corresponding UDP socket was allocated and opened so data can be transmitted/received through it. <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00266">266</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>, <a class="el" href="udp_8c-source.html#l00291">udp_open()</a>, and <a class="el" href="udp_8c-source.html#l00395">udp_send()</a>.    </td>  </tr></table><a name="a31" doxytag="tcp_ip.h::UDP_EVENT_DATA"></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_EVENT_DATA&nbsp;&nbsp;&nbsp;64      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>For now, this is the only UDP event that is notified to the UDP sockets' event listener. <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00276">276</a> of file <a class="el" href="tcp__ip_8h-source.html">tcp_ip.h</a>.<p>Referenced by <a class="el" href="dhcpc_8c-source.html#l00568">dhcpc_eventlistener()</a>, <a class="el" href="dns_8c-source.html#l00205">dns_eventlistener()</a>, and <a class="el" href="udp_8c-source.html#l00550">process_udp_in()</a>.    </td>  </tr></table><a name="a38" doxytag="tcp_ip.h::TCP_TYPE_NONE"></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 TCP_TYPE_NONE&nbsp;&nbsp;&nbsp;0x00      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>If TCP socket entry is of this type it can not be used for anything.  This may only be used for testing, debugging, etc. purposes or if  application is not sure what it wants to be it can reserve a TCP  socket by getting a socket of type TCP_TYPE_NONE. <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00300">300</a> of file <a class="el" href="tcp__ip_8h-source.html">tcp_ip.h</a>.<p>Referenced by <a class="el" href="tcp_8c-source.html#l00155">tcp_getsocket()</a>, <a class="el" href="tcp_8c-source.html#l01154">tcp_init()</a>, and <a class="el" href="tcp_8c-source.html#l00228">tcp_releasesocket()</a>.    </td>  </tr></table><a name="a39" doxytag="tcp_ip.h::TCP_TYPE_SERVER"></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 TCP_TYPE_SERVER&nbsp;&nbsp;&nbsp;0x01      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>If TCP socket entry is of server type, application using it can only listen on a given socket for incoming connections. No connections can be opened towards some outside host unless the outside host initiates the connection. <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00310">310</a> of file <a class="el" href="tcp__ip_8h-source.html">tcp_ip.h</a>.<p>Referenced by <a class="el" href="http__server_8c-source.html#l00093">https_init()</a>, <a class="el" href="tcp_8c-source.html#l01250">process_tcp_in()</a>, <a class="el" href="tcp_8c-source.html#l00155">tcp_getsocket()</a>, <a class="el" href="tcp_8c-source.html#l00290">tcp_listen()</a>, and <a class="el" href="tcp_8c-source.html#l00808">tcp_poll()</a>.    </td>  </tr></table><a name="a40" doxytag="tcp_ip.h::TCP_TYPE_CLIENT"></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 TCP_TYPE_CLIENT&nbsp;&nbsp;&nbsp;0x02      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -