Change the sample applications that use network socket API to use the POSIX_API config because the NET_SOCKETS_POSIX_NAMES is deprecated. Convert also the zsock_ API calls to plain BSD socket API calls when applicable. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
29 lines
623 B
Plaintext
29 lines
623 B
Plaintext
# General config
|
|
CONFIG_REQUIRES_FULL_LIBC=y
|
|
|
|
# Networking config
|
|
CONFIG_NETWORKING=y
|
|
CONFIG_NET_IPV4=y
|
|
CONFIG_NET_IPV6=n
|
|
CONFIG_NET_TCP=y
|
|
CONFIG_NET_SOCKETS=y
|
|
CONFIG_POSIX_API=y
|
|
|
|
# Network driver config
|
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
|
|
|
# Network address config
|
|
CONFIG_NET_CONFIG_SETTINGS=y
|
|
CONFIG_NET_CONFIG_NEED_IPV4=y
|
|
CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1"
|
|
CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2"
|
|
|
|
# Networking tweaks
|
|
# Required to handle large number of consecutive connections,
|
|
# e.g. when testing with ApacheBench.
|
|
CONFIG_NET_TCP_TIME_WAIT_DELAY=0
|
|
|
|
# Network debug config
|
|
CONFIG_NET_LOG=y
|
|
#CONFIG_NET_SHELL=y
|