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

◆ nrf_connect()

int nrf_connect ( int socket,
const struct nrf_sockaddr * address,
nrf_socklen_t address_len )

#include <nrf_modem/include/nrf_socket.h>

Connect 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.

In addition, an asynchronous connection attempt will fail and set NRF_SO_ERROR if:

  • [NRF_EBUSY] Another TLS handshake was ongoing.