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

Method init

app/wizard/tmpl/master/rpc_manager.cpp:19–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void rpc_manager::init(acl::aio_handle& handle, int max_threads /* = 10 */,
20 const char* addr /* = NULL */)
21{
22 handle_ = &handle;
23
24 // ���� rpc �������
25 service_ = new acl::rpc_service(max_threads);
26
27 // ����Ϣ����
28 if (!service_->open(handle_, addr && *addr ? addr : NULL)) {
29 logger_fatal("open service error: %s", acl::last_serror());
30 } else {
31 logger("open service ok, listen: %s", service_->get_addr());
32 }
33}
34
35void rpc_manager::fork(acl::rpc_request* req)
36{

Callers 6

proc_on_initMethod · 0.45
proc_on_initMethod · 0.45
proc_on_initMethod · 0.45
proc_on_initMethod · 0.45
proc_on_initMethod · 0.45
proc_on_initMethod · 0.45

Calls 3

last_serrorFunction · 0.50
openMethod · 0.45
get_addrMethod · 0.45

Tested by

no test coverage detected