socket_write
host callCapy
function socket_write(handle : u64, data : string) bool
Description
Use socket_write to send data to a socket.
Return Values
true when the write succeeds.
Example
Capy
var handle := socket_connect("127.0.0.1", 1)
if handle != 0 { print(socket_write(handle, "hello"), "\n"); socket_close(handle) }