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

◆ nrf_accept()

int nrf_accept ( int  socket,
struct nrf_sockaddr *restrict  address,
nrf_socklen_t *restrict  address_len 
)

#include <nrf_modem/include/nrf_socket.h>

Accept a new connection a socket.

See POSIX.1-2017 article for normative description.

In addition, the function may return -1 and set the following errno:

  • [NRF_EAGAIN] The socket's NRF_SO_RCVTIMEO timeout was exceeded.
  • [NRF_ESHUTDOWN] Modem was shut down.