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

Method get_addrs

lib_acl_cpp/src/connpool/tcp_ipc.cpp:74–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void tcp_ipc::get_addrs(std::vector<string>& addrs)
75{
76 manager_->lock();
77 std::vector<connect_pool*>& pools = manager_->get_pools();
78 for (std::vector<connect_pool*>::const_iterator cit = pools.begin();
79 cit != pools.end(); ++cit) {
80
81 addrs.push_back((*cit)->get_addr());
82 }
83
84 manager_->unlock();
85}
86
87bool tcp_ipc::send(const char* addr, const void* data, unsigned int len,
88 string* out /* = NULL */)

Callers 1

get_serversMethod · 0.80

Calls 6

beginMethod · 0.80
lockMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45
get_addrMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected