examples: Make tcp_server example support tcp keepalive function

This commit is contained in:
yuanjm
2021-02-03 11:27:06 +08:00
parent b06a588263
commit f8d27ebd76
3 changed files with 36 additions and 1 deletions

View File

@@ -16,4 +16,21 @@ menu "Example Configuration"
help
Local port the example server will listen on.
config EXAMPLE_KEEPALIVE_IDLE
int "TCP keep-alive idle time(s)"
default 5
help
Keep-alive idle time. In idle time without receiving any data from peer, will send keep-alive probe packet
config EXAMPLE_KEEPALIVE_INTERVAL
int "TCP keep-alive interval time(s)"
default 5
help
Keep-alive probe packet interval time.
config EXAMPLE_KEEPALIVE_COUNT
int "TCP keep-alive packet retry send counts"
default 3
help
Keep-alive probe packet retry count.
endmenu