|
il y a 3 ans | |
---|---|---|
include | il y a 3 ans | |
priv | il y a 3 ans | |
src | il y a 3 ans | |
.gitignore | il y a 5 ans | |
LICENSE | il y a 3 ans | |
README.md | il y a 4 ans | |
rebar.config | il y a 3 ans |
erlang网络库
{ok, Pid} = eNet:addTcpLr(test11, {{127,0,0, 1}, 9010}, echo_server, [{tcpOpts, [binary, {packet, 2}, {active, false}]}]).
{ok, S} = gen_tcp:connect({127,0,0, 1}, 9007, [{binary, {packet, 2}}]).
{ok, S} = gen_tcp:connect({127,0,0, 1}, 9007, [binary]).