This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

Network Connectivity APIΒΆ

Applications should use the BSD socket API defined in include/zephyr/net/socket.h to create a connection, send or receive data, and close a connection. The same API can be used when working with UDP or TCP data. See BSD socket API for more details.

See Echo server (advanced) and Echo client (advanced) sample applications to learn how to create a simple server or client BSD socket based application.

The legacy connectivity API in include/zephyr/net/net_context.h should not be used by applications.