nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_send()

ssize_t nrf_send ( int  socket,
const void *  buffer,
size_t  length,
int  flags 
)

#include <nrf_modem/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.