tcp_echo_sup.erl 370 B

12345678910111213141516171819202122
  1. %% Feel free to use, reuse and abuse the code in this file.
  2. %% @private
  3. -module(tcp_echo_sup).
  4. -behaviour(supervisor).
  5. %% API.
  6. -export([start_link/0]).
  7. %% supervisor.
  8. -export([init/1]).
  9. %% API.
  10. -spec start_link() -> {ok, pid()}.
  11. start_link() ->
  12. supervisor:start_link({local, ?MODULE}, ?MODULE, []).
  13. %% supervisor.
  14. init([]) ->
  15. {ok, {{one_for_one, 10, 10}, []}}.