From 894a6b1d9ce6cf5ec8665c12d8b4e0cdec9b0ae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 13 May 2010 17:24:35 +0200 Subject: [PATCH] login: Add entrance 2 port for JP. --- include/network.hrl | 3 ++- src/egs_login.erl | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/network.hrl b/include/network.hrl index 87a84a1..067afeb 100644 --- a/include/network.hrl +++ b/include/network.hrl @@ -22,7 +22,8 @@ -define(PATCH_PORT_US, 11230). -define(PATCH_LISTEN_OPTIONS, [binary, {send_timeout, 5000}, {packet, 0}, {active, false}, {reuseaddr, true}]). --define(LOGIN_PORT_JP, 12030). +-define(LOGIN_PORT_JP_ONE, 12030). +-define(LOGIN_PORT_JP_TWO, 12031). -define(LOGIN_PORT_US, 12230). -define(LOGIN_LISTEN_OPTIONS, [binary, {active, false}, {certfile, "ssl/servercert.pem"}, {keyfile, "ssl/serverkey.pem"}, {password, "alpha"}]). diff --git a/src/egs_login.erl b/src/egs_login.erl index 38d9b54..e214670 100644 --- a/src/egs_login.erl +++ b/src/egs_login.erl @@ -26,9 +26,10 @@ %% @doc Start the login server. Currently AOTI JP and US only. start() -> - JPPid = spawn_link(?MODULE, listen, [?LOGIN_PORT_JP, 10000001]), - USPid = spawn_link(?MODULE, listen, [?LOGIN_PORT_US, 20000001]), - [{jp, JPPid}, {us, USPid}]. + JPPidE1 = spawn_link(?MODULE, listen, [?LOGIN_PORT_JP_ONE, 10000001]), + JPPidE2 = spawn_link(?MODULE, listen, [?LOGIN_PORT_JP_TWO, 20000001]), + USPid = spawn_link(?MODULE, listen, [?LOGIN_PORT_US, 30000001]), + [{jp_e1, JPPidE1}, {jp_e2, JPPidE2}, {us, USPid}]. %% @doc Listen for connections.