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

Method set_status

lib_acl_cpp/src/connpool/connect_manager.cpp:724–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

722}
723
724void connect_manager::set_status(pools_t& pools, const char* addr, bool alive)
725{
726 string buf1(addr), buf2;
727 buf1.lower();
728
729 for (pools_t::iterator it = pools.begin(); it != pools.end(); ++it) {
730 get_addr((*it)->get_key(), buf2);
731 if (buf1 == buf2) {
732 (*it)->set_alive(alive);
733 break;
734 }
735 }
736}
737
738void connect_manager::get_key(const char* addr, string& key)
739{

Callers

nothing calls this directly

Calls 5

beginMethod · 0.80
get_addrFunction · 0.50
endMethod · 0.45
get_keyMethod · 0.45
set_aliveMethod · 0.45

Tested by

no test coverage detected