cleanup, docs
This commit is contained in:
@@ -13,4 +13,6 @@ Closes an existing socket connection.
|
||||
Use this when you are done with a socket opened through `socket_connect()`.
|
||||
|
||||
:example
|
||||
print("socket_close is resource-bound; configure the service or connection, then call it in request code.\n");
|
||||
u64 fd = socket_connect("127.0.0.1", 80);
|
||||
print(fd != 0 ? "opened a socket" : "open failed", ", now closing it\n");
|
||||
socket_close(fd);
|
||||
|
||||
Reference in New Issue
Block a user