Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR ERLANG

tcp client erlang

client() ->
    {ok, Sock} = gen_tcp:connect("localhost", 5678, [binary, {packet, 0}]),
    ok = gen_tcp:send(Sock, "Some Data"),
    ok = gen_tcp:close(Sock).
Source by www.erlang.org #
 
PREVIOUS NEXT
Tagged: #tcp #client #erlang
ADD COMMENT
Topic
Name
3+3 =