Function nrfxlib_sys::nrf_connect
source · pub unsafe extern "C" fn nrf_connect(
socket: c_int,
address: *const nrf_sockaddr,
address_len: nrf_socklen_t
) -> c_int
Expand description
Connect a socket.
@details See POSIX.1-2017 article for normative description.
In addition, the function shall return -1 and set the following errno:
- NRF_ESHUTDOWN Modem was shut down.
In addition, an asynchronous connection attempt shall fail and set NRF_SO_ERROR if:
- NRF_EBUSY Another TLS handshake was ongoing.