派生自 development/c++

xuxiuxi
2019-03-08 5bf0020b189b2bc8c64737c2af4ea77c3e8f5612
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <iostream>
 
#include <basic/util/app/AppPreference.hpp>
#include <basic/util/app/AppConfig.h>
#include "http_configserver.h"
#include "net_config/net_config.h"
//#include "../segvCatch.h"
using namespace std;
using namespace cv;
 
int main(int argc, char **argv) {
    std::cout<<__DATE__<<std::endl;
    ENABLEGLOG(GET_STR_CONFIG("logPath").c_str());
 
//    unsigned char gateway_addr[15] = {0};
//    SetIpAddress("enp1s0", "192.168.1.181");
//    SetMaskAddress("enp1s0", "255.255.255.0");
//    GetGateWay("enp1s0", gateway_addr);
//    SetGateWay("enp1s0", (char *)gateway_addr, "192.168.1.1");
 
    appPref.setLongData("gpu.index", 0);//gpu
    appPref.setLongData("thread.max", 20);//sdk
    int port = appConfig.getIntProperty("webPort");
    devHttpServer_c _devHttpServer("0.0.0.0", port, 20);//webserver thread
 
    cout << "Hello World!" << endl;
    return 0;
}
 
 
//erl -name sub1@192.168.1.164 -setcookie  abc -mnesia dir '"/opt/erlang/sub1"'
//erl -name sub2@192.168.1.116 -setcookie  abc -mnesia dir '"/opt/erlang/sub2"' -detached -noshell