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

Method service_main

lib_acl_cpp/src/master/master_proc.cpp:146–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144//////////////////////////////////////////////////////////////////////////
145
146void master_proc::service_main(void* ctx, ACL_VSTREAM *stream)
147{
148 master_proc* mp = (master_proc *) ctx;
149 acl_assert(mp != NULL);
150
151 socket_stream* client = NEW socket_stream();
152 if (!client->open(stream)) {
153 logger_fatal("open stream error!");
154 }
155
156#ifndef ACL_WINDOWS
157 if (mp->daemon_mode_) {
158 acl_watchdog_pat(); // ����֪ͨ acl_master ���һ��
159 }
160#endif
161 mp->on_accept(client);
162 client->unbind();
163 delete client;
164}
165
166void master_proc::service_pre_jail(void* ctx)
167{

Callers

nothing calls this directly

Calls 5

acl_watchdog_patFunction · 0.85
socket_streamClass · 0.50
openMethod · 0.45
on_acceptMethod · 0.45
unbindMethod · 0.45

Tested by

no test coverage detected