#include <nrf_socket.h>
Send a message on a connected socket.
See POSIX.1-2017 article for normative description.
In addition, the function may return -1 and set the following errno:
- [NRF_ESHUTDOWN] Modem was shut down.
- [NRF_ECANCELED] Operation canceled because of APN rate control.
- [NRF_ENOMEM] TCP stream interrupted because of no heap memory.
- [NRF_EPROTO] Request failed because DTLS context was serialized.
- [NRF_EBUSY] Earlier send request with the NRF_SO_SENDCB socket option set is still ongoing.
- [NRF_ECOMM] Data transmission with the NRF_MSG_WAITACK flag failed. Sending may be retried.