• 大小: 3.4MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-10
  • 语言: 其他
  • 标签: 惊天动地  

资源简介

这个是Cabal惊天动地源码,大家可以参考学习一下。据说有人可以编译成功,但我没有测试过,请自行下载测试。

资源截图

代码片段和文件信息

#include “../NetLib/NetKernel.h“
#include “../NetLib/IOlayer.h“
#include “../NetLib/Processlayer.h“
#include “../NetLib/Utility.h“
#include “../NetLib/SystemLog.h“
#include “Proc/ProcSystem.h“
#include “ContextEx.h“
#include “JobHistory.h“

//
//#include “ProtodefEx.h“
//#include “ExceptionDumpEx.h“

using namespace PROCESSMANAGER;

static void PrintServerData(void*)
{
    //print init proc info
    for(int i=0; i        if(g_sUsrProcedureMap[i]) {
            g_sUsrProcedureMap[i]->Dump();
        }
    }

    for(int i=0; i        if(g_sSysProcedureMap[i]) {
            g_sSysProcedureMap[i]->Dump();
        }
    }
}


void RunServer(CNetKernel& sNetKernel)
{
    CProcesslayer sProcesslayer;
    CIOlayer sIOlayer(&sProcesslayer);
    CProcSystem sProcSystem(&sProcesslayer &sIOlayer);

    //int threadNum = CONFIG_INT(“BuildAgent“ “DBProcessTNum“ 20);

    ACE_Reactor* reactor = ACE_Reactor::instance();

    if( !sProcesslayer.Active(3) ||
        !sProcSystem.Active() ||
        !sIOlayer.Active() ||
        g_pProcessManager->open(ACE_Process_Manager::DEFAULT_SIZE reactor) || 
        g_pTerminateProcessManager->open(ACE_Process_Manager::DEFAULT_SIZE ACE_Reactor::instance()))
    {
        LOG_ERROR((“active fail“));
        ACE_Reactor::end_event_loop();
    }

    sNetKernel.Wait();
}

int main(int argc char** argv)
{
    CNetKernel sNetKernel;
    if(!sNetKernel.Initialize(argc argv)) {
        LOG_ERROR((“Initialize fail“));
        return 1;
    }
    sNetKernel.SetSigHup(PrintServerData);
    
    g_pJobHistory->OpenJobHistory();

    RunServer(sNetKernel);

    ProcessManagerSingleton::close();
    ProcessNumSingleton::close();
    TerminateProcessManagerSingleton::close();
    CJobHistorySingleton::close();
    

    return 0;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1910  2012-10-11 01:17  Cabal Source\BuildAgent\BuildAgent.cpp

     文件       2953  2012-10-11 01:17  Cabal Source\BuildAgent\BuildAgent.sln

     文件       6536  2012-10-11 01:17  Cabal Source\BuildAgent\BuildAgent.vcproj

     文件        257  2012-10-11 01:17  Cabal Source\BuildAgent\BuildAgent.vcproj.vspscc

     文件        256  2012-10-11 01:17  Cabal Source\BuildAgent\BuildAgent.vssscc

     文件       1639  2012-10-11 01:17  Cabal Source\BuildAgent\BuildShare\ProtodefEx.h

     文件       6467  2012-10-11 01:17  Cabal Source\BuildAgent\BuildShare\ProtosdefEx.h

     文件       5039  2012-10-11 01:17  Cabal Source\BuildAgent\BuildShare\TypedefEx.h

     文件         36  2012-10-11 01:17  Cabal Source\BuildAgent\ContextEx.cpp

     文件       9156  2012-10-11 01:17  Cabal Source\BuildAgent\ContextEx.h

     文件       6605  2012-10-11 01:17  Cabal Source\BuildAgent\JobHistory.cpp

     文件       1779  2012-10-11 01:17  Cabal Source\BuildAgent\JobHistory.h

     文件       2078  2012-10-11 01:17  Cabal Source\BuildAgent\link.cpp

     文件        443  2012-10-11 01:17  Cabal Source\BuildAgent\Makefile

     文件          2  2012-10-11 01:17  Cabal Source\BuildAgent\Makefile.dep

     文件        301  2012-10-11 01:17  Cabal Source\BuildAgent\mssccprj.scc

     文件      30454  2012-10-11 01:17  Cabal Source\BuildAgent\Proc\BuildProc.cpp

     文件       7443  2012-10-11 01:17  Cabal Source\BuildAgent\Proc\ProcSystem.cpp

     文件        499  2012-10-11 01:17  Cabal Source\BuildAgent\Proc\ProcSystem.h

     文件       8180  2012-10-11 01:18  Cabal Source\BuildAgent\ProcessHandler.cpp

     文件       1493  2012-10-11 01:18  Cabal Source\BuildAgent\ProcessHandler.h

     文件        639  2012-10-11 01:18  Cabal Source\BuildAgent\ProtodefEx.h

     文件       1594  2012-10-11 01:18  Cabal Source\BuildAgent\ProtosdefEx.h

     文件        752  2012-10-11 01:18  Cabal Source\BuildAgent\TypedefEx.h

     文件       6211  2012-10-11 01:19  Cabal Source\ChatNode\ChatNode.cpp

     文件       2982  2012-10-11 01:20  Cabal Source\ChatNode\ChatNode.sln

     文件      12117  2012-10-11 01:20  Cabal Source\ChatNode\ChatNode.vcproj

     文件        257  2012-10-11 01:20  Cabal Source\ChatNode\ChatNode.vcproj.vspscc

     文件        256  2012-10-11 01:20  Cabal Source\ChatNode\ChatNode.vssscc

     文件       6717  2012-10-11 01:20  Cabal Source\ChatNode\ContextEx.cpp

............此处省略613个文件信息

评论

共有 条评论