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

Function main

lib_acl_cpp/samples/master/master_proc/master_proc.cpp:115–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113//////////////////////////////////////////////////////////////////////////
114
115int main(int argc, char* argv[])
116{
117 master_proc_test& mp = singleton2<master_proc_test>::get_instance();
118
119 // ����������
120 mp.set_cfg_int(var_conf_int_tab);
121 mp.set_cfg_int64(NULL);
122 mp.set_cfg_str(var_conf_str_tab);
123 mp.set_cfg_bool(var_conf_bool_tab);
124
125 // ��ʼ����
126
127 if (argc == 1 || (argc >= 2 && strcmp(argv[1], "alone") == 0))
128 {
129 mp.run_alone("127.0.0.1:8888", NULL, 5); // �������з�ʽ
130 }
131 else
132 {
133#ifdef WIN32
134 mp.run_alone("127.0.0.1:8888", NULL, 5); // �������з�ʽ
135#else
136 mp.run_daemon(argc, argv); // acl_master ����ģʽ����
137#endif
138 }
139
140 return 0;
141}
142

Callers

nothing calls this directly

Calls 6

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…