:sig
void socket_close(u64 sockfd)

:params
sockfd : socket handle

:see
>socket

:content
Closes an existing socket connection.

Use this when you are done with a socket opened through `socket_connect()`.

Related:

- PHP: PHP sockets and stream APIs like `socket_connect()`, `fread()`, `fwrite()`, and stream clients
- JavaScript / Node.js: Node `net.Socket` connect, read, write, and close operations
