17 lines
327 B
Plaintext
17 lines
327 B
Plaintext
: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()`.
|
|
|
|
:example
|
|
print("socket_close is resource-bound; configure the service or connection, then call it in request code.\n");
|