f1ef2c6cde
When a socket is closed, it should make sure that any pending write data is sent before the FIN is sent. It already would wait for all sent data to be acked, however it would discard any pending write data that had not been sent at least once. This change adds a check for pending write data in addition to unacked data. However, to be able to actually send any new data, the send callback must be left. The callback should be freed later when the socket is actually destroyed. |
||
---|---|---|
.. | ||
arp | ||
devif | ||
icmp | ||
icmpv6 | ||
igmp | ||
iob | ||
local | ||
loopback | ||
neighbor | ||
netdev | ||
pkt | ||
procfs | ||
route | ||
socket | ||
tcp | ||
udp | ||
utils | ||
.gitignore | ||
Kconfig | ||
Makefile | ||
net_initialize.c | ||
README.txt |
README ====== Directory Structure =================== nuttx/ | `- net/ | +- arp - Address resolution protocol (IPv4) +- devif - Stack/device interface layer +- icmp - Internet Control Message Protocol (IPv4) +- icmpv6 - Internet Control Message Protocol (IPv6) +- iob - I/O buffering logic +- local - Unix domain (local) sockets +- loopback - Local loopback +- neighbor - Neighbor Discovery Protocol (IPv6) +- netdev - Socket network device interface +- pkt - "Raw" packet socket support +- socket - BSD socket interface +- route - Routing table support +- tcp - Transmission Control Protocol +- udp - User Datagram Protocol `- utils - Miscellaneous utility functions +----------------------------------------------------------------+ | Application layer | +----------------------------------------------------------------+ +----------------------------------------------------------------+ | Socket layer (socket/) | +----------------------------------------------------------------+ +------------++--------------------------------------------------+ | Network || Protocol stacks (arp, ipv6, icmp, pkt, tcp, udp) | | Device |+--------------------------------------------------+ | Interface |+------------------------------------++------------+ | (netdev/) || Network Device Interface (devif/) || Utilities | +------------++------------------------------------++------------+ +----------------------------------------------------------------+ | Network Device Drivers | +----------------------------------------------------------------+