Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
8
Task/Sockets/Erlang/sockets.erl
Normal file
8
Task/Sockets/Erlang/sockets.erl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
-module(socket).
|
||||
-export([start/0]).
|
||||
|
||||
start() ->
|
||||
{ok, Sock} = gen_tcp:connect("localhost", 256,
|
||||
[binary, {packet, 0}]),
|
||||
ok = gen_tcp:send(Sock, "hello socket world"),
|
||||
ok = gen_tcp:close(Sock).
|
||||
Loading…
Add table
Add a link
Reference in a new issue