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

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.