Sockets: Difference between revisions

(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
Line 1,131:
</lang>
 
=={{header|Standard ML}}==
<lang>val txt = Word8VectorSlice.full (Byte.stringToBytes "hello world" ) ;
val set = fn socket => fn ipnr => fn portnr => fn text =>
(
Socket.connect (socket, INetSock.toAddr ( Option.valOf (NetHostDB.fromString(ipnr) ) , portnr )) ;
Socket.sendVec(socket, text) before Socket.close socket
)
;
</lang>
call
set ( INetSock.TCP.socket () ) "127.0.0.1" 256 txt ;
=={{header|Tcl}}==
<lang tcl>set io [socket localhost 256]
Anonymous user