uce/site/doc/pages/socket_write.txt
2026-06-16 12:21:31 +00:00

19 lines
436 B
Plaintext

:sig
bool socket_write(u64 sockfd, String data)
:params
sockfd : socket handle
data : a string containing the data to be written to the socket
return value : true if the write operation was successful
:see
>socket
:content
Writes `data` to the given socket.
The function returns `true` when the write succeeds.
:example
print("socket_write is resource-bound; configure the service or connection, then call it in request code.\n");