Function ctru_sys::SOCU_GetNetworkOpt
source · pub unsafe extern "C" fn SOCU_GetNetworkOpt(
level: c_int,
optname: NetworkOpt,
optval: *mut c_void,
optlen: *mut socklen_t
) -> c_int
Expand description
Retrieves information from the network configuration. Similar to getsockopt().
§Arguments
level
- Only value allowed seems to be SOL_CONFIGoptname
- The option to be retrievedoptval
- Will contain the output of the commandoptlen
- Size of the optval buffer, will be updated to hold the size of the output
§Returns
0 if successful. -1 if failed, and errno will be set accordingly. Can also return a system error code.