Files
Sun1602/Server/PortalServer/DBProxyServerSession.cpp
2022-10-26 12:25:11 +08:00

28 lines
622 B
C++

#include "StdAfx.h"
#include ".\dbproxyserversession.h"
#include "PacketHandler.h"
#include "PortalRankingManager.h"
__IMPL_CUSTOMPOOL_PTR( DBProxyServerSession )
DBProxyServerSession::DBProxyServerSession(void)
{
}
DBProxyServerSession::~DBProxyServerSession(void)
{
}
VOID DBProxyServerSession::OnRecv( BYTE *pMsg, WORD wSize )
{
PacketHandler::Instance()->ParsePacket( PACKET_HANDLER_DBPROXY, this, (MSG_BASE *)pMsg, wSize );
}
void DBProxyServerSession::OnConnect( BOOL bSuccess, DWORD dwNetworkIndex )
{
ServerSession::OnConnect( bSuccess, dwNetworkIndex );
if( bSuccess )
{
g_RankingMgr.Initialize();
}
}