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

Method init

lib_acl_cpp/samples/http_server/rpc_manager.cpp:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15void rpc_manager::init(acl::aio_handle* handle, int max_threads /* = 10 */,
16 const char* rpc_addr /* = NULL */)
17{
18 handle_ = handle;
19
20 // ���� rpc �������
21 service_ = new acl::rpc_service(max_threads);
22 // ����Ϣ����
23 if (service_->open(handle_, rpc_addr) == false)
24 logger_fatal("open service error: %s", acl::last_serror());
25}
26
27void rpc_manager::finish()
28{

Callers 10

initFunction · 0.45
proc_on_initMethod · 0.45
proc_on_initMethod · 0.45
mainFunction · 0.45
proc_on_initMethod · 0.45
proc_on_initMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
initFunction · 0.45
mainFunction · 0.45

Calls 2

last_serrorFunction · 0.50
openMethod · 0.45

Tested by

no test coverage detected