COAP_SUPPORTED(3)
π NAME π
okay bestie, welcome to COAP_SUPPORTED(3) from the libcoap Manual π β this is your runtime-support vibe check for libcoap, aka the page that tells you what your build can actually do. The whole squad here is: coap_supported, coap_af_unix_is_supported, coap_async_is_supported, coap_client_is_supported, coap_dtls_is_supported, coap_dtls_cid_is_supported, coap_dtls_psk_is_supported, coap_dtls_pki_is_supported, coap_dtls_pkcs11_is_supported, coap_dtls_rpk_is_supported, coap_epoll_is_supported, coap_ipv4_is_supported, coap_ipv6_is_supported, coap_observe_persist_is_supported, coap_oscore_is_supported, coap_proxy_is_supported, coap_server_is_supported, coap_tcp_is_supported, coap_threadsafe_is_supported, coap_tls_is_supported, coap_ws_is_supported and coap_wss_is_supported β they work with CoAP runtime functionality. Periodt. β¨
β¨ SYNOPSIS β¨
#include <coap3/coap.h>
int coap_af_unix_is_supported(void);
int coap_async_is_supported(void);
int coap_client_is_supported(void);
int coap_dtls_is_supported(void);
int coap_dtls_cid_is_supported(void);
int coap_dtls_pkcs11_is_supported(void);
int coap_dtls_pki_is_supported(void);
int coap_dtls_psk_is_supported(void);
int coap_dtls_rpk_is_supported(void);
int coap_epoll_is_supported(void);
int coap_ipv4_is_supported(void);
int coap_ipv6_is_supported(void);
int coap_observe_persist_is_supported(void);
int coap_oscore_is_supported(void);
int coap_proxy_is_supported(void);
int coap_server_is_supported(void);
int coap_tcp_is_supported(void);
int coap_threadsafe_is_supported(void);
int coap_tls_is_supported(void);
int coap_ws_is_supported(void);
int coap_wss_is_supported(void);
For specific (D)TLS library support, link with -lcoap-3-notls, -lcoap-3-gnutls, -lcoap-3-openssl, -lcoap-3-mbedtls, -lcoap-3-wolfssl or -lcoap-3-tinydtls. Otherwise, link with -lcoap-3 to get the default (D)TLS library support.
π¦ DESCRIPTION π¦
These functions are used to determine run-time support in the libcoap library. No cap.
libcoap has optional support that can be configured at library compilation time, as well as any underlying (D)TLS may, or may not, have certain functionality. Itβs giving βdepends on your buildβ energy. π
The optional #include file <coap3/coap_defines.h>, which is created whenever ./configure or cmake is run, has a list of #define that were used when the local libcoap library was built and can be used in applications for determining what support is available.
NOTE: If doing cross-compiling, it is unsafe to use<coap3/coap_defines.h>as the list of#definemay not be correct. So do not trust it for cross-compile vibes, bestie. π¨
π FUNCTIONS π
Function: coap_af_unix_is_supported()
This one checks if there is socket type AF_UNIX support, or not, compiled into libcoap. Unix socket girlies rise. π§
Function: coap_async_is_supported()
Checks if there is async support, or not, compiled into libcoap.
Function: coap_client_is_supported()
Checks if there is CoAP client support, or not, compiled into libcoap.
Function: coap_dtls_is_supported()
Checks if there is DTLS support available with the configured underlying TLS library.
Function: coap_dtls_cid_is_supported()
Checks if there is Connection-ID (CID) support available with the configured underlying TLS library.
Function: coap_dtls_pkcs11_is_supported()
Checks if there is PKCS11 support available with the configured underlying TLS library.
Function: coap_dtls_pki_is_supported()
Checks if there is PKI support available with the configured underlying TLS library.
Function: coap_dtls_psk_is_supported()
Checks if there is PSK support available with the configured underlying TLS library.
Function: coap_dtls_rpk_is_supported()
Checks if there is RPK support available with the configured underlying TLS library.
Function: coap_epoll_is_supported()
Checks if there is epoll support, or not, compiled into libcoap.
Function: coap_ipv4_is_supported()
Checks if there is IPv4 support, or not, compiled into libcoap.
Function: coap_ipv6_is_supported()
Checks if there is IPv6 support, or not, compiled into libcoap.
Function: coap_observe_persist_is_supported()
Checks if there is Observe persist support, or not, compiled into libcoap.
Function: coap_oscore_is_supported()
Checks if there is oscore support, or not, compiled into libcoap.
Function: coap_proxy_is_supported()
Checks if there is proxy code support, or not, compiled into libcoap.
Function: coap_server_is_supported()
Checks if there is CoAP server support, or not, compiled into libcoap.
Function: coap_tcp_is_supported()
Checks if there is TCP support, or not, compiled into libcoap.
Function: coap_threadsafe_is_supported()
Checks if there is thread safe support, or not, compiled into libcoap.
Function: coap_tls_is_supported()
Checks if there is TLS support available with the configured underlying TLS library.
Function: coap_ws_is_supported()
Checks if there is WebSockets support, or not, compiled into libcoap.
Function: coap_wss_is_supported()
Checks if there is Secuere WebSockets support, or not, compiled into libcoap. (yep, βSecuereβ is literally how the page spells it π)
π RETURN VALUES π
These functions β coap_af_unix_is_supported(), coap_async_is_supported(), coap_client_is_supported(), coap_dtls_is_supported(), coap_dtls_cid_is_supported(), coap_dtls_pkcs11_is_supported(), coap_dtls_pki_is_supported(), coap_dtls_psk_is_supported(), coap_dtls_rpk_is_supported(), coap_epoll_is_supported(), coap_ipv4_is_supported(), coap_ipv6_is_supported(), coap_observe_persist_is_supported(), coap_oscore_is_supported(), coap_proxy_is_supported(), coap_server_is_supported(), coap_tcp_is_supported(), coap_threadsafe_is_supported(), coap_tls_is_supported(), coap_ws_is_supported() and coap_wss_is_supported() β return 0 if there is no support, 1 if support is available. Thatβs the whole return-value tea. π΅
π₯ SEE ALSO π₯
coap_async(3)coap_io(3)coap_locking(3)coap_oscore(3)coap_proxy(3)coap_tls_library(3)coap_websockets(3)
πΈ FURTHER INFORMATION πΈ
See:
- "RFC7252: The Constrained Application Protocol (CoAP)"
- "RFC8323: CoAP (Constrained Application Protocol) over TCP, TLS, and WebSockets"
for further information.
π BUGS π
Please raise an issue on GitHub at https://github.com/obgm/libcoap/issues to report any bugs.
Please raise a Pull Request at https://github.com/obgm/libcoap/pulls for any fixes.
π AUTHORS π
The libcoap project <libcoap-developers@lists.sourceforge.net>.
mwah π β source/version: coap_supported 4.3.5b, date: 04/28/2026. Thatβs the footer, bestie, and we are so done π«Άβ¨
π¦ where this page comes from
- alpine 3.24: libcoap-doc 4.3.5b-r0 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms