mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
This commit implements a proper version of SO_LINGER. Not sufficiently tested on initial commit.
Squashed commit of the following:
net/: Fix some naming inconsistencies, Fix final compilation issies.
net/inet/inet_close(): Now that we have logic to drain the buffered TX data, we can implement a proper lingering close.
net/inet,tcp,udp: Add functions to wait for write buffers to drain.
net/udp: Add support for notification when the UDP write buffer becomes empty.
net/tcp: Add support for notification when the TCP write buffer becomes empty.
This commit is contained in:
@@ -284,11 +284,13 @@ struct work_s
|
||||
|
||||
enum work_evtype_e
|
||||
{
|
||||
WORK_IOB_AVAIL = 1, /* Notify availability of an IOB */
|
||||
WORK_NET_DOWN, /* Notify that the network is down */
|
||||
WORK_TCP_READAHEAD, /* Notify that TCP read-ahead data is available */
|
||||
WORK_TCP_DISCONNECT, /* Notify loss of TCP connection */
|
||||
WORK_UDP_READAHEAD /* Notify that TCP read-ahead data is available */
|
||||
WORK_IOB_AVAIL = 1, /* Notify availability of an IOB */
|
||||
WORK_NET_DOWN, /* Notify that the network is down */
|
||||
WORK_TCP_READAHEAD, /* Notify that TCP read-ahead data is available */
|
||||
WORK_TCP_WRITEBUFFER, /* Notify that TCP write buffer is empty */
|
||||
WORK_TCP_DISCONNECT, /* Notify loss of TCP connection */
|
||||
WORK_UDP_READAHEAD, /* Notify that UDP read-ahead data is available */
|
||||
WORK_UDP_WRITEBUFFER /* Notify that UDP write buffer is empty */
|
||||
};
|
||||
|
||||
/* This structure describes one notification and is provided as input to
|
||||
|
||||
Reference in New Issue
Block a user