nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ nrf_recv()

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

#include <nrf_modem/include/nrf_socket.h>

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