Sockets: Difference between revisions

→‎{{header|Erlang}}: Fixed string...
(→‎{{header|Erlang}}: The Erlang version was a server that the other programs could connect to, corrected it to be a client instead)
(→‎{{header|Erlang}}: Fixed string...)
Line 265:
{ok, Sock} = gen_tcp:connect("localhost", 256,
[binary, {packet, 0}]),
ok = gen_tcp:send(Sock, "Somehello Datasocket world"),
ok = gen_tcp:close(Sock).
</lang>