1.. _networking_api_usage: 2 3Network Connectivity API 4######################## 5 6Applications should use the BSD socket API defined in 7:zephyr_file:`include/zephyr/net/socket.h` to create a connection, send or receive data, 8and close a connection. The same API can be used when working with UDP or 9TCP data. See :ref:`BSD socket API <bsd_sockets_interface>` for more details. 10 11See :zephyr:code-sample:`sockets-echo-server` and :zephyr:code-sample:`sockets-echo-client` 12sample applications to learn how to create a simple server or client BSD socket based 13application. 14 15The legacy connectivity API in :zephyr_file:`include/zephyr/net/net_context.h` should not be 16used by applications. 17