Network Connectivity API¶
Applications should use the BSD socket API defined in include/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 Socket Echo Server and Socket Echo Client applications how to create a simple server or client BSD socket based application.
The legacy connectivity API in include/net/net_context.h should not be used by applications.