Function csp_socket_close

Source
pub unsafe extern "C" fn csp_socket_close(
    sock: *mut csp_socket_t,
) -> c_int
Expand description

Close a socket, freeing it’s RX queue and unbinding it from the associated port.

@param[in] sock Socket @return #CSP_ERR_NONE on success, otherwise an error code.