For this exercise a program is open a socket to localhost on port 256 and send the message "hello socket world" before closing the socket.

Catching any exceptions or errors is not required.




include unix/socket.fs
 
s" localhost" 256 open-socket
 
dup s" hello socket world" rot write-socket
 
close-socket