📄 tcp__ip_8h.html
字号:
<td> </td> <td><p>Received ACK of our FIN, now waiting for other side to send FIN <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00349">349</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#l01250">process_tcp_in()</a>, <a class="el" href="tcp_8c-source.html#l00736">tcp_abort()</a>, <a class="el" href="tcp_8c-source.html#l00549">tcp_close()</a>, <a class="el" href="tcp_8c-source.html#l02455">tcp_newstate()</a>, and <a class="el" href="tcp_8c-source.html#l00808">tcp_poll()</a>. </td> </tr></table><a name="a50" doxytag="tcp_ip.h::TCP_STATE_CLOSING"></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_STATE_CLOSING 9 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Received FIN independently of our FIN <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00353">353</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#l01250">process_tcp_in()</a>, <a class="el" href="tcp_8c-source.html#l00736">tcp_abort()</a>, <a class="el" href="tcp_8c-source.html#l00549">tcp_close()</a>, <a class="el" href="tcp_8c-source.html#l02455">tcp_newstate()</a>, and <a class="el" href="tcp_8c-source.html#l00808">tcp_poll()</a>. </td> </tr></table><a name="a51" doxytag="tcp_ip.h::TCP_STATE_LAST_ACK"></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_STATE_LAST_ACK 10 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Waiting for last ACK packet as a response to our FIN <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00356">356</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#l01250">process_tcp_in()</a>, <a class="el" href="tcp_8c-source.html#l00736">tcp_abort()</a>, <a class="el" href="tcp_8c-source.html#l00549">tcp_close()</a>, <a class="el" href="tcp_8c-source.html#l02455">tcp_newstate()</a>, and <a class="el" href="tcp_8c-source.html#l00808">tcp_poll()</a>. </td> </tr></table><a name="a52" doxytag="tcp_ip.h::TCP_STATE_TIMED_WAIT"></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_STATE_TIMED_WAIT 11 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Waiting for 2MSL to prevent erroneous connection duplication <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00359">359</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#l01250">process_tcp_in()</a>, <a class="el" href="tcp_8c-source.html#l00736">tcp_abort()</a>, <a class="el" href="tcp_8c-source.html#l00549">tcp_close()</a>, <a class="el" href="tcp_8c-source.html#l00290">tcp_listen()</a>, <a class="el" href="tcp_8c-source.html#l02455">tcp_newstate()</a>, and <a class="el" href="tcp_8c-source.html#l00808">tcp_poll()</a>. </td> </tr></table><a name="a53" doxytag="tcp_ip.h::TCP_STATE_CONNECTED"></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_STATE_CONNECTED 12 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Connection established and data flowing freely to both sides :-) <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00362">362</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#l01250">process_tcp_in()</a>, <a class="el" href="tcp_8c-source.html#l00736">tcp_abort()</a>, <a class="el" href="tcp_8c-source.html#l00690">tcp_checksend()</a>, <a class="el" href="tcp_8c-source.html#l00549">tcp_close()</a>, <a class="el" href="tcp_8c-source.html#l02455">tcp_newstate()</a>, <a class="el" href="tcp_8c-source.html#l00808">tcp_poll()</a>, and <a class="el" href="tcp_8c-source.html#l00481">tcp_send()</a>. </td> </tr></table><a name="a54" doxytag="tcp_ip.h::TCP_EVENT_CONREQ"></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_EVENT_CONREQ 1 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Connection request event is notified to TCP server applications' event listener when SYN packet is received for it's socket. Event listener can then, if it wants to, inspect IP addres and port number of the remote host, or some other internal parameters, to decide whether it should allow connection establishment or not. One of the following values must then be returned from the event listener: <ul><li> -1 - do not allow connection to be established. RST packet will be sent to remote host. <li> -2 - do not respond to this particular SYN packet (keep quiet). This may be used if device is somehow busy and not yet ready to establish a connection, but doesn't wan't to forcefully reject the connection with a RST packet. <li> 1 - allow connection to be established </ul><p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00387">387</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#l01250">process_tcp_in()</a>. </td> </tr></table><a name="a55" doxytag="tcp_ip.h::TCP_EVENT_CONNECTED"></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_EVENT_CONNECTED 2 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Applications' event listener is informed by this event that connection is established and that it may start sending/receiving data. <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00397">397</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#l01250">process_tcp_in()</a>. </td> </tr></table><a name="a56" doxytag="tcp_ip.h::TCP_EVENT_CLOSE"></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_EVENT_CLOSE 4 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>TCP connection was properly closed (either by calling <a class="el" href="group__tcp__app__api.html#a5">tcp_close()</a> by application or remote host initialized closing sequence). <p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00405">405</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#l01250">process_tcp_in()</a>, and <a class="el" href="tcp_8c-source.html#l00808">tcp_poll()</a>. </td> </tr></table><a name="a57" doxytag="tcp_ip.h::TCP_EVENT_ABORT"></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_EVENT_ABORT 8 </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Connection is, for some reason, aborted. This can happen for a number of reasons: <ul><li> Data retransmissions performed sufficient number of times but no acknowledgment was received <li> No response for some time to keep-alive packets <li> Remote host forcefully closed the connection for some reason <li> Application invoked <a class="el" href="group__tcp__app__api.html#a8">tcp_abort()</a> function </ul><p>Definition at line <a class="el" href="tcp__ip_8h-source.html#l00418">418</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#l01250">process_tcp_in()</a>, and <a class="el" href="tcp_8c-source.html#l00808">tcp_poll()</a>. </td> </tr></table><a name="a58" doxytag="tcp_ip.h::TCP_EVENT_ACK"></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_EVENT_ACK 16 </table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -