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

Function main

lib_acl_cpp/samples/http_response/main.cpp:211–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209//////////////////////////////////////////////////////////////////////////
210
211int main(int argc, char* argv[]) {
212#ifdef WIN32
213 acl::acl_cpp_init();
214#endif
215 master_service service; // ��������������
216
217 // ��ʼ����
218
219 if (argc >= 2 && strcmp(argv[1], "alone") == 0) {
220 if (argc >= 3) {
221 service.set_charset(argv[2]);
222 }
223
224 acl::log::stdout_open(true); printf("listen: 0.0.0.0:8888 ...\r\n");
225 service.run_alone("0.0.0.0:8888", NULL, 0); // �������з�ʽ
226 } else {
227 service.run_daemon(argc, argv); // acl_master ����ģʽ����
228 }
229
230 return 0;
231}

Callers

nothing calls this directly

Calls 4

acl_cpp_initFunction · 0.85
set_charsetMethod · 0.45
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…