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

Method get_addr

lib_acl_cpp/samples/ssl/https_proxy/master_service.cpp:154–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154const char* master_service::get_addr(const char* from) const
155{
156 if (from == NULL || *from == 0) {
157 return NULL;
158 }
159 acl::string key(from);
160 key.lower();
161 std::map<acl::string, acl::string>::const_iterator cit =
162 addrs_map_.find(key);
163 if (cit != addrs_map_.end()) {
164 return cit->second.c_str();
165 } else {
166 logger("Local not exist from: %s\r\n", from);
167 return NULL;
168 }
169}
170
171void master_service::create_addrs_map()
172{

Callers 10

endFunction · 0.45
check_all_connectionsFunction · 0.45
thread_mainFunction · 0.45
runMethod · 0.45
hspool_findFunction · 0.45
connect_serverMethod · 0.45
mainFunction · 0.45
test_subscribeFunction · 0.45
print_slave_nodesFunction · 0.45
test_nodesFunction · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45

Tested by 2

test_subscribeFunction · 0.36
test_nodesFunction · 0.36