📜  loc - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:57.708000             🧑  作者: Mango

代码示例2
client() ->
    SomeHostInNet = "localhost", % to make it runnable on one machine
    {ok, Sock} = gen_tcp:connect(SomeHostInNet, 5678, 
                                 [binary, {packet, 0}]),
    ok = gen_tcp:send(Sock, "Some Data"),
    ok = gen_tcp:close(Sock).