Ejemplo n.º 1
0
int UnLoadModuleData()
{
  OUR_DEBUG((LM_INFO, "[Base UnLoadModuleData] Begin.\n"));
  if(g_pServerObject != NULL)
  {
    IMessageManager* pMessageManager = g_pServerObject->GetMessageManager();
    if(NULL != pMessageManager)
    {
      pMessageManager->DelClientCommand(COMMAND_BASE, &g_BaseCommand);
      pMessageManager->DelClientCommand(CLIENT_LINK_CONNECT, &g_BaseCommand);
      pMessageManager->DelClientCommand(CLIENT_LINK_CDISCONNET, &g_BaseCommand);
      pMessageManager = NULL;
    }
  }
  OUR_DEBUG((LM_INFO, "[Base UnLoadModuleData] End.\n"));
  return 0;
}
Ejemplo n.º 2
0
int UnLoadModuleData()
{
    OUR_DEBUG((LM_INFO, "[Base UnLoadModuleData] Begin.\n"));
    if(g_pServerObject != NULL)
    {
        IMessageManager* pMessageManager = g_pServerObject->GetMessageManager();
        if(NULL != pMessageManager)
        {
            pMessageManager->DelClientCommand(COMMAND_ENTERROOM, &g_BaseCommand);
            pMessageManager->DelClientCommand(COMMAND_EXITROOM, &g_BaseCommand);
            pMessageManager->DelClientCommand(COMMAND_BEGINROOM, &g_BaseCommand);
            pMessageManager->DelClientCommand(COMMAND_ENDROOM, &g_BaseCommand);
            pMessageManager->DelClientCommand(COMMAND_SETCARDROOM, &g_BaseCommand);
            pMessageManager->DelClientCommand(COMMAND_OUTOLAYER, &g_BaseCommand);
            pMessageManager->DelClientCommand(COMMAND_CHANGEROOM, &g_BaseCommand);
            pMessageManager->DelClientCommand(COMMAND_CLEARROOM, &g_BaseCommand);
            pMessageManager->DelClientCommand(COMMAND_INITROOM, &g_BaseCommand);
            pMessageManager->DelClientCommand(COMMAND_SETROOM, &g_BaseCommand);
            pMessageManager = NULL;
        }
    }
    OUR_DEBUG((LM_INFO, "[Base UnLoadModuleData] End.\n"));
    return 0;
}
Ejemplo n.º 3
0
int UnLoadModuleData()
{
  OUR_DEBUG((LM_INFO, "[Base UnLoadModuleData] Begin.\n"));
  if(g_pServerObject != NULL)
  {
    IMessageManager* pMessageManager = g_pServerObject->GetMessageManager();
    if(NULL != pMessageManager)
    {
      pMessageManager->DelClientCommand(COMMAND_LOGIN, &g_BaseCommand);
	  pMessageManager->DelClientCommand(COMMAND_LOGOUT, &g_BaseCommand);
	  pMessageManager->DelClientCommand(COMMAND_FILELIST, &g_BaseCommand);
	  pMessageManager->DelClientCommand(COMMAND_FILE_DOWNLOAD, &g_BaseCommand);
	  pMessageManager->DelClientCommand(COMMAND_FILE_UPLOAD, &g_BaseCommand);
      pMessageManager->DelClientCommand(CLIENT_LINK_CONNECT, &g_BaseCommand);
      pMessageManager->DelClientCommand(CLIENT_LINK_CDISCONNET, &g_BaseCommand);
      pMessageManager = NULL;
    }
  }

  g_BaseCommand.ClearUserList();
  OUR_DEBUG((LM_INFO, "[Base UnLoadModuleData] End.\n"));
  return 0;
}