#include <nrf_modem/include/nrf_socket.h>
Close a network socket.
See POSIX.1-2017 article for normative description.
In addition, the function may return -1 and set the following errno: