#include "stdafx.h" #include #include #include #include DBProxyServerSession::DBProxyServerSession() { } DBProxyServerSession::~DBProxyServerSession() { } // CHANGES: f110617.1L void DBProxyServerSession::OnRedirect(DWORD network_index, MSG_SERVER_TYPE* const first_contact_msg) { ServerSessionEx::OnRedirect(network_index, first_contact_msg); } VOID DBProxyServerSession::OnConnect( BOOL bSuccess, DWORD dwNetworkIndex ) { ServerSessionEx::OnConnect( bSuccess, dwNetworkIndex ); if( bSuccess ) { AgentServer* pAgentServer = AgentServer::GetInstance(); if( SERVER_ABNORMAL_DISCONNECTED == pAgentServer->GetDBProxyServerState() ) { //sendAllUsersInfo(); } pAgentServer->StartServerSideListen(); } } VOID DBProxyServerSession::OnDisconnect() { // DBproxy¿Í ¿¬°áÀÌ ²÷¾îÁö¸é, Agent´Â Field¿Í BattleServer¿Í ¿¬°áÀ» ²÷¾î¼­ ÇØ´ç ÀÛ¾÷À» ó¸®ÇÑ´Ù. ServerSessionManager::Instance()->DisconnectAllServer(); // ºñÁ¤»óÀû DB Proxy Á¾·á AgentServer::GetInstance()->SetDBProxyServerState( SERVER_ABNORMAL_DISCONNECTED ); ServerSessionEx::OnDisconnect(); // NOTE: f110427.5L, do shutdown process if a handler disconnected with odbc. AgentServer::GetInstance()->SERVER_EXIT.StartServerExitProcess(); SUNLOG(eCRITICAL_LOG, _T("|["__FUNCTION__"]|ÐÅÏ¢=db proxy server disconnected, close agent server|")); } VOID DBProxyServerSession::SendAllUsersInfo() { }