diff options
Diffstat (limited to 'examples/tcp_echo/src/echo_protocol.erl')
-rw-r--r-- | examples/tcp_echo/src/echo_protocol.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/tcp_echo/src/echo_protocol.erl b/examples/tcp_echo/src/echo_protocol.erl index 85ea289..5ed79b3 100644 --- a/examples/tcp_echo/src/echo_protocol.erl +++ b/examples/tcp_echo/src/echo_protocol.erl @@ -1,7 +1,10 @@ %% Feel free to use, reuse and abuse the code in this file. -module(echo_protocol). --export([start_link/4, init/4]). +-behaviour(ranch_protocol). + +-export([start_link/4]). +-export([init/4]). start_link(Ref, Socket, Transport, Opts) -> Pid = spawn_link(?MODULE, init, [Ref, Socket, Transport, Opts]), |