Function nrfxlib_sys::nrf_close[][src]

pub unsafe extern "C" fn nrf_close(sock: c_int) -> c_int
Expand description

Function for closing a socket and freeing any resources held by it.

s If the socket is already closed, this function does nothing.

  • sock - The socket to close.

Returns 0 on success, or -1 on error.