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

Method run_alone

lib_acl_cpp/src/master/master_udp.cpp:76–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74//////////////////////////////////////////////////////////////////////////
75
76bool master_udp::run_alone(const char* addrs, const char* path /* = NULL */,
77 unsigned int)
78{
79#ifdef ACL_WINDOWS
80 acl_cpp_init();
81#endif
82
83 // ÿ������ֻ����һ��ʵ��������
84 acl_assert(__has_called == false);
85 __has_called = true;
86 daemon_mode_ = false;
87 acl_assert(addrs && *addrs);
88
89 int argc = 0;
90 const char *argv[6];
91
92 const char* proc = acl_process_path();
93 argv[argc++] = proc ? proc : "demo";
94 argv[argc++] = "-n";
95 argv[argc++] = addrs;
96 if (path && *path) {
97 argv[argc++] = "-f";
98 argv[argc++] = path;
99 }
100 argv[argc++] = "-r";
101
102 run(argc, (char**) argv);
103 return true;
104}
105
106void master_udp::push_back(socket_stream* ss)
107{

Callers

nothing calls this directly

Calls 3

acl_cpp_initFunction · 0.85
acl_process_pathFunction · 0.85
runFunction · 0.50

Tested by

no test coverage detected