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

Method init

lib_acl_cpp/samples/master/master_http_rpc/rpc_manager.cpp:16–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

proc_on_initMethod · 0.45

Calls 2

last_serrorFunction · 0.50
openMethod · 0.45

Tested by

no test coverage detected