MCPcopy Create free account
hub / github.com/acl-dev/acl / main

Function main

lib_acl_cpp/samples/ssl/https_server/main.cpp:4–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "master_service.h"
3
4int main(int argc, char* argv[])
5{
6 // ��ʼ�� acl ��
7 acl::acl_cpp_init();
8
9 master_service& ms = acl::singleton2<master_service>::get_instance();
10
11 // ����������
12 ms.set_cfg_int(var_conf_int_tab);
13 ms.set_cfg_int64(var_conf_int64_tab);
14 ms.set_cfg_str(var_conf_str_tab);
15 ms.set_cfg_bool(var_conf_bool_tab);
16
17 // ��ʼ����
18
19 if (argc >= 2 && strcmp(argv[1], "alone") == 0)
20 {
21 acl::log::stdout_open(true); // ��־�������׼���
22 const char* addr = "";
23 printf("listen on: %s\r\n", addr);
24 if (argc >= 3)
25 ms.run_alone(addr, argv[2], 0); // �������з�ʽ
26 else
27 ms.run_alone(addr, NULL, 0); // �������з�ʽ
28
29 printf("Enter any key to exit now\r\n");
30 getchar();
31 }
32 else
33 ms.run_daemon(argc, argv); // acl_master ����ģʽ����
34
35 return 0;
36}

Callers

nothing calls this directly

Calls 7

acl_cpp_initFunction · 0.85
set_cfg_intMethod · 0.80
set_cfg_int64Method · 0.80
set_cfg_strMethod · 0.80
set_cfg_boolMethod · 0.80
run_aloneMethod · 0.45
run_daemonMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…