Two utils to manipulate addresses in format "addr[:port]". I.e., network address (domain name or numeric), optionally followed by port number: * net_addr_str_find_port(), to return pointer to port number substring (or NULL if not present). * net_getaddrinfo_addr_str(), which is effectively getaddrinfo() wrapper taking a "addr[:port]" string as a parameter. The header file is named socketutils.h to emphasize that these utility functions are implemented on top of BSD Sockets API (and other POSIX/ANSI C functions), and thus portable to other POSIX systems (e.g., Linux), so can be used in apps testing POSIX compatibility. More utility functions (beyond address manipulation) can be added later. Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
20 lines
634 B
CMake
20 lines
634 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
add_subdirectory(utils)
|
|
add_subdirectory_if_kconfig(coap)
|
|
add_subdirectory_if_kconfig(lwm2m)
|
|
add_subdirectory_if_kconfig(socks)
|
|
add_subdirectory_if_kconfig(sntp)
|
|
add_subdirectory_ifdef(CONFIG_DNS_RESOLVER dns)
|
|
add_subdirectory_ifdef(CONFIG_MQTT_LIB mqtt)
|
|
add_subdirectory_ifdef(CONFIG_NET_CONFIG_SETTINGS config)
|
|
add_subdirectory_ifdef(CONFIG_NET_SOCKETS sockets)
|
|
add_subdirectory_ifdef(CONFIG_TLS_CREDENTIALS tls_credentials)
|
|
|
|
if(CONFIG_HTTP_PARSER_URL
|
|
OR CONFIG_HTTP_PARSER)
|
|
add_subdirectory(http)
|
|
endif()
|
|
|
|
add_subdirectory_ifdef(CONFIG_OPENTHREAD_PLAT openthread)
|