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

◆ nrf_recvfrom()

ssize_t nrf_recvfrom ( int  socket,
void *restrict  buffer,
size_t  length,
int  flags,
struct nrf_sockaddr *restrict  address,
nrf_socklen_t *restrict  address_len 
)

#include <nrf_modem/include/nrf_socket.h>

Receive a message from 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_ENOMEM] TCP stream interrupted because of no heap memory.