Function nrfxlib_sys::nrf_setsockopt
source · pub unsafe extern "C" fn nrf_setsockopt(
socket: c_int,
level: c_int,
option_name: c_int,
option_value: *const c_void,
option_len: nrf_socklen_t
) -> c_int
Expand description
Set the socket options.
@details See POSIX.1-2017 article for normative description.
@note In Modem library this function supports a subset of socket options described by POSIX, but also some additional options.
In addition, the function shall return -1 and set the following errno:
- NRF_EAGAIN The option could not be set when requested, try again.
- NRF_EOPNOTSUPP The option is not supported with the current socket configuration.
- NRF_ESHUTDOWN Modem was shut down.