19 lines
436 B
Plaintext
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");
|