2013-05-22 15:35:54 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:14:53 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2013-05-22 15:35:54 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
config EXAMPLES_TCPECHO
|
2018-09-03 17:29:56 +02:00
|
|
|
tristate "Simple TCP echo server"
|
2013-05-22 15:35:54 +02:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Simple single threaded, poll based TCP echo server. This example
|
|
|
|
implements the TCP Echo Server from W. Richard Stevens
|
|
|
|
UNIX Network Programming Book.
|
|
|
|
|
|
|
|
config EXAMPLES_TCPECHO_PORT
|
|
|
|
int "Server Port"
|
|
|
|
default 80
|
|
|
|
depends on EXAMPLES_TCPECHO
|
|
|
|
|
|
|
|
config EXAMPLES_TCPECHO_BACKLOG
|
|
|
|
int "Listen Backlog"
|
|
|
|
default 8
|
|
|
|
depends on EXAMPLES_TCPECHO
|
|
|
|
|
|
|
|
config EXAMPLES_TCPECHO_NCONN
|
|
|
|
int "Number of Connections"
|
|
|
|
default 8
|
|
|
|
depends on EXAMPLES_TCPECHO
|
|
|
|
|
|
|
|
config EXAMPLES_TCPECHO_DHCPC
|
|
|
|
bool "DHCP Client"
|
|
|
|
default n
|
|
|
|
depends on EXAMPLES_TCPECHO && !NSH_BUILTIN_APPS
|
|
|
|
select NETUTILS_DHCPC
|
2015-08-21 00:08:45 +02:00
|
|
|
select NETDB_DNSCLIENT
|
2013-05-22 15:35:54 +02:00
|
|
|
|
|
|
|
config EXAMPLES_TCPECHO_NOMAC
|
|
|
|
bool "Use Canned MAC Address"
|
|
|
|
default n
|
|
|
|
depends on EXAMPLES_TCPECHO && !NSH_BUILTIN_APPS
|
|
|
|
|
|
|
|
config EXAMPLES_TCPECHO_IPADDR
|
|
|
|
hex "Target IP address"
|
|
|
|
default 0x0a000002
|
|
|
|
depends on EXAMPLES_TCPECHO && !NSH_BUILTIN_APPS && !EXAMPLES_TCPECHO_DHCPC
|
|
|
|
|
|
|
|
config EXAMPLES_TCPECHO_DRIPADDR
|
|
|
|
hex "Default Router IP address (Gateway)"
|
|
|
|
default 0x0a000001
|
|
|
|
depends on EXAMPLES_TCPECHO && !NSH_BUILTIN_APPS
|
|
|
|
|
|
|
|
config EXAMPLES_TCPECHO_NETMASK
|
|
|
|
hex "Network Mask"
|
|
|
|
default 0xffffff00
|
|
|
|
depends on EXAMPLES_TCPECHO && !NSH_BUILTIN_APPS
|