MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / AFCNetClientService

Method AFCNetClientService

src/plugin/net/src/AFCNetClientService.cpp:27–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace ark {
26
27AFCNetClientService::AFCNetClientService(AFPluginManager* p)
28 : m_pPluginManager(p)
29{
30 m_pNetServiceManagerModule = m_pPluginManager->FindModule<AFINetServiceManagerModule>();
31 m_pBusModule = m_pPluginManager->FindModule<AFIBusModule>();
32 m_pMsgModule = m_pPluginManager->FindModule<AFIMsgModule>();
33 m_pLogModule = m_pPluginManager->FindModule<AFILogModule>();
34
35 ARK_ASSERT_RET_NONE(m_pNetServiceManagerModule != nullptr && m_pBusModule != nullptr && m_pMsgModule != nullptr &&
36 m_pLogModule != nullptr);
37
38 consistent_hashmap_.set_vnode_count(EConstDefine_DefaultWeight);
39}
40
41bool AFCNetClientService::StartClient(const AFHeadLength head_len, const int& target_bus_id, const AFEndpoint& endpoint)
42{

Callers

nothing calls this directly

Calls 1

set_vnode_countMethod · 0.80

Tested by

no test coverage detected