Browse Source

ft: 完善

master
SisMaker 3 weeks ago
parent
commit
04bf02dbcb
2 changed files with 35 additions and 1 deletions
  1. +34
    -0
      config/center.app
  2. +1
    -1
      src/center.erl

+ 34
- 0
config/center.app View File

@ -0,0 +1,34 @@
%% auther: huangyongxing@yeah.net
%% date: 2016.11.09
{
application,
main,
[
{description, "game server"},
{vsn, "1.0"},
{modules, [center]},
{registered, []},
{applications, [kernel, stdlib, sasl, inets, crypto, asn1, public_key, ssl]},
{mod, {center, []}},
{start_phases, []},
{env, [
{tcp_acceptor_num, 10}
,{tcp_options, [
binary
,{packet, 0}
,{active, false}
,{keepalive, true}
,{reuseaddr, true}
,{nodelay, false}
,{delay_send, true}
,{exit_on_close, false}
,{high_watermark, 65536}
,{send_timeout, 15000}
,{send_timeout_close, true}
]
}
,{certify, {1672502400, "5b682df2885c381e8cb434040cc3bdb1"}}
]
}
]
}.

+ 1
- 1
src/center.erl View File

@ -5,7 +5,7 @@
-export([start/0, start/2, stop/1]).
start() ->
AllApp = [kernel, stdlib, sasl, inets, crypto, asn1, public_key, ssl, main],
AllApp = [kernel, stdlib, sasl, inets, crypto, asn1, public_key, ssl, center],
[doStartApp(App) || App <- AllApp].
doStartApp(MFAOrApp) ->

Loading…
Cancel
Save