@ -1,34 +0,0 @@ | |||||
%% auther: huangyongxing@yeah.net | |||||
%% date: 2016.11.09 | |||||
{ | |||||
application, | |||||
center, | |||||
[ | |||||
{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,6 +1,9 @@ | |||||
-setcookie mrzj_dev_center | -setcookie mrzj_dev_center | ||||
-noshell | |||||
-detached | |||||
-pa ./ebin | -pa ./ebin | ||||
-pa ./dep/ebin | -pa ./dep/ebin | ||||
-pa ./dep/ebin/debug_cmd | -pa ./dep/ebin/debug_cmd | ||||
-pa ./config | -pa ./config | ||||
+A 64 | |||||
+A 64 | |||||
-s main start |
@ -1,29 +0,0 @@ | |||||
-module(center). | |||||
-behaviour(application). | |||||
-export([start/0, start/2, stop/1]). | |||||
start() -> | |||||
AllApp = [kernel, stdlib, sasl, inets, crypto, asn1, public_key, ssl, center], | |||||
[doStartApp(App) || App <- AllApp]. | |||||
doStartApp(MFAOrApp) -> | |||||
try | |||||
case case is_function(MFAOrApp) of true -> MFAOrApp(); _ -> application:ensure_all_started(MFAOrApp) end of | |||||
{error, AppErrReason} -> | |||||
io:format("start the app:~p error:~p", [MFAOrApp, AppErrReason]), | |||||
exit({error, AppErrReason}); | |||||
_ -> | |||||
io:format("start app ~w", [MFAOrApp]) | |||||
end | |||||
catch C:R:S -> | |||||
io:format("start the app:~p CRS:~p", [MFAOrApp, {C, R, S}]), | |||||
exit({error, {MFAOrApp, {C, R, S}}}) | |||||
end. | |||||
start(_StartType, _StartArgs) -> | |||||
game_center_sup:start_link(["127.0.0.1", "9110"]). | |||||
stop(_State) -> | |||||
ok. |
@ -1 +1 @@ | |||||
erl -name center@127.0.0.1 -args_file "./config/vm.args" -config "./config/cls.config" -s center start | |||||
erl -name mrzj_dev_center@127.0.0.1 -args_file "./config/vm.args" -config "./config/cls.config" |
@ -1 +1 @@ | |||||
erl -name game@127.0.0.1 -args_file "./config/vm.args" -config "./config/gsrv.config" | |||||
erl -name mrzj_dev_1@127.0.0.1 -args_file "./config/vm.args" -config "./config/gsrv.config" |