nuttx/Documentation/components/net
zhanghongyu 746d68916f net/tcp: add support for the CLOSE_WAIT state
CLOSE-WAIT - represents waiting for a connection termination request
             from the local user.
      TCP A                                                TCP B

  1.  ESTABLISHED                                          ESTABLISHED
  2.  (Close)
      FIN-WAIT-1  --> <SEQ=100><ACK=300><CTL=FIN,ACK>  --> CLOSE-WAIT
  3.  FIN-WAIT-2  <-- <SEQ=300><ACK=101><CTL=ACK>      <-- CLOSE-WAIT
  4.                                                       (Close)
      TIME-WAIT   <-- <SEQ=300><ACK=101><CTL=FIN,ACK>  <-- LAST-ACK
  5.  TIME-WAIT   --> <SEQ=101><ACK=301><CTL=ACK>      --> CLOSED
  6.  (2 MSL)
      CLOSED

in the current state, we can continue to send data until the user
calls shutdown or close, then directly enter the TCP_LAST_ACK state

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2025-12-27 21:06:23 +08:00
..
delay_act_and_tcp_perf.rst Doc: migration 5 2024-11-10 10:13:28 +08:00
index.rst net/tcp: add support for the CLOSE_WAIT state 2025-12-27 21:06:23 +08:00
ipfilter.rst Documentation: Add docs for ipfilter 2024-06-20 09:43:05 +08:00
mdio.rst net/mdio: add mdio bus 2025-09-25 16:24:18 +08:00
nat.rst net/nat: Support IPv6 Masquerading (NAT66) 2024-04-11 22:23:29 +08:00
netdev.rst Documentation: Add docs for lower-half of netdriver 2024-04-07 10:17:13 -03:00
netdriver.rst netdev_upperhalf: convert Kconfig to variable 2025-12-14 10:01:22 +08:00
netguardsize.rst Documentation: migrate "CONFIG_NET_GUARDSIZE" from wiki 2023-11-06 18:42:17 -03:00
netlink.rst net/netlink: Add doc for netlink route 2024-05-14 10:05:37 -03:00
pkt.rst net/packet: add PACKET_<ADD|DROP>_MEMBERSHIP support 2025-12-25 10:01:43 +08:00
sixlowpan.rst
slip.rst style: fix typos 2025-04-30 13:45:46 +08:00
socketcan.rst net/can: add write buffer to support nonblock send 2025-12-15 10:19:15 +08:00
tcp_network_perf.rst Doc: migration 5 2024-11-10 10:13:28 +08:00
tcp_state_machine.rst net/tcp: add support for the CLOSE_WAIT state 2025-12-27 21:06:23 +08:00
wqueuedeadlocks.rst Documentation: Fix various typos 2023-11-23 16:38:19 -08:00