josh rotenberg 4e5e04f668 Update tcp_echo example to use erlang.mk 11 лет назад
..
src 109c63d0e7 Remove ranch_listener and replace ListenerPid by Ref 12 лет назад
Makefile 4e5e04f668 Update tcp_echo example to use erlang.mk 11 лет назад
README.md 4e5e04f668 Update tcp_echo example to use erlang.mk 11 лет назад
rebar.config bfa353f8e7 Add a TCP Echo protocol example 12 лет назад
relx.config 4e5e04f668 Update tcp_echo example to use erlang.mk 11 лет назад

README.md

Ranch TCP Echo

To build the example:

$ make

To start the release in the foreground:

$ ./_rel/bin/tcp_echo_example console

Then start a telnet session to port 5555:

$ telnet localhost 5555

Type in a few words and see them echoed back.

Be aware that there is a timeout of 5 seconds without receiving data before the example server disconnects your session.