RosettaCodeData/Task/Sockets/Haskell/sockets-2.hs

9 lines
198 B
Haskell

link cfunc
procedure main ()
hello("localhost", 1024)
end
procedure hello (host, port)
write(tconnect(host, port) | stop("unable to connect to", host, ":", port) , "hello socket world")
end