socket_connect
host callCapy
function socket_connect(host : string, port : s32) u64
Description
Use socket_connect to open a socket to an IPv4 address and port. Pass a nonzero handle to the socket functions.
Return Values
Socket handle, or zero when the connection fails.
Example
Capy
var handle := socket_connect("127.0.0.1", 80)
print(handle, "\n")