nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ nrf_sendto()

ssize_t nrf_sendto ( int  socket,
const void *  message,
size_t  length,
int  flags,
const struct nrf_sockaddr dest_addr,
nrf_socklen_t  dest_len 
)

#include <nrf_modem/include/nrf_socket.h>

Send a message on a 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.