nuttx/net/socket/Kconfig
Gregory Nutt de5a6163d5 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.
2019-07-01 12:25:32 -06:00

54 lines
1.2 KiB
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
menu "Socket Support"
config NSOCKET_DESCRIPTORS
int "Number of socket descriptors"
default 8
range 1 99999
---help---
Maximum number of socket descriptors per task/thread.
config NET_NACTIVESOCKETS
int "Max socket operations"
default 16
---help---
Maximum number of concurrent socket operations (recv, send,
connection monitoring, etc.). Default: 16
config NET_SOCKOPTS
bool "Socket options"
default n
---help---
Enable or disable support for socket options
config NET_TCPPROTO_OPTIONS
bool
default n
---help---
Enable or disable support for TCP protocol level socket options.
config NET_UDPPROTO_OPTIONS
bool
default n
---help---
Enable or disable support for UDP protocol level socket options.
if NET_SOCKOPTS
config NET_SOLINGER
bool "SO_LINGER socket option"
default n
depends on NET_TCP_WRITE_BUFFERS || NET_UDP_WRITE_BUFFERS
select TCP_NOTIFIER if NET_TCP
select UDP_NOTIFIER if NET_UDP
---help---
Enable or disable support for the SO_LINGER socket option. Requires
write buffer support.
endif # NET_SOCKOPTS
endmenu # Socket Support