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

Method GetServerNode

src/plugin/net/src/AFCNetClientService.cpp:208–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208bool AFCNetClientService::GetServerNode(const std::string& hash_key, AFVNode& vnode)
209{
210 auto iter = consistent_hashmap_.find(hash_key);
211 if (iter == consistent_hashmap_.end())
212 {
213 return false;
214 }
215 else
216 {
217 vnode = iter->second;
218 return true;
219 }
220}
221
222void AFCNetClientService::RemoveServerNode(std::shared_ptr<AFConnectionData> data)
223{

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected