void WalletServer::PacketHandler( ISocketInstancePtr _incomeSocket, Packet& _packet )
{
	quint32 msg = _packet.GetMessage();
	switch(msg)
	{
	case MSG_LS_WS_QUERY_USER_WALLET:
		processQueryUserWallet(_incomeSocket, _packet);
		break;
	case MSG_GS_WS_QUERY_TABLE_WALLET:
		processQueryTableWallet(_incomeSocket, _packet);
		break;
	case MSG_GS_WS_INSERT_TABLE_WALLET:
		processInserTableWallet(_incomeSocket, _packet);
		break;
	default:
		LOG_WARN(QString("incorrect message:%1").arg(msg));
		break;
	}
}
void LoginServer::PacketHandler( ISocketInstancePtr _incomeSocket, Packet& _packet )
{
	int msg = _packet.GetMessage();

	LOG_INFO(QString("Rev msg[%1] from %2:%3").arg(msg).arg(_incomeSocket->GetSocket()->peerAddress().toString()).arg(_incomeSocket->GetSocket()->peerPort()));
	switch (msg)
	{
	case MSG_CL_LS_LOGIN:
		processClientLogin(_incomeSocket, _packet);
		break;
	case MSG_CL_LS_GAMELIST:
		processClientReqGameList(_incomeSocket, _packet);
		break;
	case MSG_CL_LS_LOGIN_ANONYMOUS:
		processClientLoginAnonymous(_incomeSocket, _packet);
		break;
	default:
		LOG_ERR(QString("Wrong Message[%1] from %2:%3").arg(msg).arg(_incomeSocket->GetSocket()->peerAddress().toString()).arg(_incomeSocket->GetSocket()->peerPort()));
		break;
	}
	
}