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

◆ nrf_bind()

int nrf_bind ( int  socket,
const struct nrf_sockaddr address,
nrf_socklen_t  address_len 
)

#include <nrf_modem/include/nrf_socket.h>

Bind a name to 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.