erlang网络库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
378 B

4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. -module(eNet_sup).
  2. -behaviour(supervisor).
  3. -export([
  4. start_link/0
  5. ]).
  6. -export([
  7. init/1
  8. ]).
  9. -spec(start_link() -> {ok, pid()} | {error, term()}).
  10. start_link() ->
  11. supervisor:start_link({local, ?MODULE}, ?MODULE, undefined).
  12. init(_Args) ->
  13. SupFlag = #{strategy => one_for_one, intensity => 100, period => 3600},
  14. ChildSpecs = [],
  15. {ok, {SupFlag, ChildSpecs}}.