nuttx/net/socket
Andrew Webster f1ef2c6cde TCP: attempt to flush the write buffers before closing
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.
2016-01-22 15:58:02 -06:00
..
accept.c net_startmonitor.c always returned zero. In the case where a socket has already been closed, it correctly handled the disconnetion event but still returned OK. Returning OK causes the callers of net_startmonitor to assume that the connection was okay, undoing the good things that net_startmonitor did and causing the socket to be marked as connected. This behavior was noted by Pelle Windestam. 2015-05-28 08:23:51 -06:00
bind.c net/: More clean-up of spacing/alignment issues 2015-10-08 15:10:04 -06:00
connect.c net/: More clean-up of spacing/alignment issues 2015-10-08 15:10:04 -06:00
getsockname.c net/: More clean-up of spacing/alignment issues 2015-10-08 15:10:04 -06:00
getsockopt.c net/: More clean-up of spacing/alignment issues 2015-10-08 15:10:04 -06:00
Kconfig Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation 2015-06-28 08:08:57 -06:00
listen.c Networking: Add local Unix domain socket listen logic 2015-01-25 14:16:44 -06:00
Make.defs net/udp: Add support for send() with connected UDP sockets 2015-08-11 19:17:55 -06:00
net_checksd.c Cosmetic standardization of some naming in comments 2015-01-19 16:02:56 -06:00
net_clone.c Networking: New domain field in socket structure is created by socket(), but missed cases where a socket is created via accept() or dup() 2015-01-22 07:50:31 -06:00
net_close.c TCP: attempt to flush the write buffers before closing 2016-01-22 15:58:02 -06:00
net_dupsd2.c Networking: Fix some compilation issues noted with network is build with CONFIG_BUILD_KERNEL 2015-07-05 11:18:56 -06:00
net_dupsd.c Fix some spacing problems 2015-10-04 15:04:00 -06:00
net_monitor.c net/: More clean-up of spacing/alignment issues 2015-10-08 15:10:04 -06:00
net_poll.c Networking: Separate TCP poll logic out of net/sockets/net_poll.c and move it into the new net/tcp/tcp_netpoll.c. 2015-01-30 07:25:01 -06:00
net_sendfile.c Update to use 64-bit timer when available 2016-01-21 11:54:26 -06:00
net_sockets.c net/: More clean-up of spacing/alignment issues 2015-10-08 15:10:04 -06:00
net_timeo.c Update to use 64-bit timer when available 2016-01-21 11:54:26 -06:00
net_vfcntl.c Networking: Fix some compilation issues noted with network is build with CONFIG_BUILD_KERNEL 2015-07-05 11:18:56 -06:00
recv.c Cosmetic standardization of some naming in comments 2015-01-19 16:02:56 -06:00
recvfrom.c Update to use 64-bit timer when available 2016-01-21 11:54:26 -06:00
send.c net/udp: Add support for send() with connected UDP sockets 2015-08-11 19:17:55 -06:00
sendto.c net/udp: Add support for send() with connected UDP sockets 2015-08-11 19:17:55 -06:00
setsockopt.c net/: More clean-up of spacing/alignment issues 2015-10-08 15:10:04 -06:00
socket.c Fix some spacing problems 2015-10-04 15:04:00 -06:00
socket.h Update to use 64-bit timer when available 2016-01-21 11:54:26 -06:00