21 lines
513 B
Plaintext
21 lines
513 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.
|
|
|
|
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
|