From 7d2535aa39274976bb58438bfb731d47c5d5adcb Mon Sep 17 00:00:00 2001 From: azw Date: Fri, 14 Apr 2023 08:21:49 +0000 Subject: [PATCH] 1 --- server/wsproxy/constant.h | 11 ----------- server/wsproxy/master.cc | 6 ------ 2 files changed, 17 deletions(-) diff --git a/server/wsproxy/constant.h b/server/wsproxy/constant.h index a2ba8b2..256c84c 100644 --- a/server/wsproxy/constant.h +++ b/server/wsproxy/constant.h @@ -13,7 +13,6 @@ enum InnerMesssage_e IM_PlayerOffline, IM_ExecGM, IM_UpStreamDisconnect, - IM_MasterDisconnect, IM_UpStreamConnect, }; @@ -24,19 +23,9 @@ enum NetHandler_e HID_MasterMgr, }; -enum PlayerState_e -{ - PS_None, - PS_InRoom, - PS_Matching, - PS_WaitingMatch -}; - const char* const PROJ_NAME_FMT = "game%d_wsproxy"; const char* const PROJ_ROOT_FMT = "/data/logs/%s"; -const int POSTFIX_LEN = 7; - const int MAX_NODE_ID = 8; const int MAX_INSTANCE_ID = 500; diff --git a/server/wsproxy/master.cc b/server/wsproxy/master.cc index 1c2fd56..00435f7 100644 --- a/server/wsproxy/master.cc +++ b/server/wsproxy/master.cc @@ -90,12 +90,6 @@ void Master::on_disconnect(a8::TcpClient* sender) { recv_bufflen_ = 0; f8::UdpLog::Instance()->Info("masterserver %d disconnected after 10s later reconnect", {instance_id}); - #if 0 - App::Instance()->AddIMMsg(IM_MasterDisconnect, - a8::XParams() - .SetSender(instance_id) - ); - #endif } void Master::on_socketread(a8::TcpClient* sender, char* buf, unsigned int len)