4 lines
187 B
Elixir
4 lines
187 B
Elixir
% Start the server in examples/gen_tcp_server.ex and then run this file
|
|
{'ok, tcp} = GenTCP.connect("localhost", 5678, ['binary, {'packet, 0}])
|
|
'ok = tcp.send("Some Data")
|
|
'ok = tcp.close |