18 lines
471 B
Plaintext
18 lines
471 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
|
|
|
|
:desc
|
|
Writes a string of 'data' to the given socket.
|
|
|
|
:see
|
|
>socket
|
|
|
|
: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
|