Networking Example — C
Source: apps/c/example_net/src/app.c | WASM Demo{:target="_blank"}
Exercises the full networking stack with a pass/fail test framework: netif configuration, DNS resolution, TCP/UDP sockets, HTTP client (GET/POST/PUT), SNTP time sync, MQTT pub/sub, and embedded HTTP server.
Language-specific patterns
This example uses the unified C API with _create() / _destroy() calls that work in both heap and zero-heap modes.
See the overview for architecture details and the full API list.
How to build
# Native POSIX
make host.posix.example_net
make configure && make download && make && make run
# WASM (browser)
make wasm.posix.example_net
make configure && make download && make && make run