Function nrfxlib_sys::nrf_getsockopt[][src]

pub unsafe extern "C" fn nrf_getsockopt(
    sock: c_int,
    level: c_int,
    optname: c_int,
    p_optval: *mut c_void,
    p_optlen: *mut nrf_socklen_t
) -> c_int

Function for getting socket options for a given socket.

s The options are grouped by level, and the option value is the value described by the option name.

  • sock - The socket for which to set the option.
  • level - The level or group to which the option belongs.
  • optname - The name of the socket option.
  • p_optval - Pointer to the storage for the option value.
  • p_optlen - The size of p_optval. Can be modified to the actual size of p_optval.

Returns 0 on success, or -1 on error.