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

Method get_servers

app/master/tools/master_dispatch/manager/client_servlet.cpp:118–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118bool client_servlet::get_servers()
119{
120 servers_.clear();
121
122 // �ȴ�������ȡ��������Ҫ��ѯ�ĵ�ַ
123 const std::vector<acl::string>& addrs =
124 server_manager::get_instance().get_addrs();
125 std::vector<acl::string>::const_iterator cit = addrs.begin();
126 for (; cit != addrs.end(); ++cit)
127 servers_.push_back(*cit);
128
129 // �ٸ����������в�ѯ
130 lookup_dns();
131
132 if (servers_.empty())
133 {
134 logger_error("no result for domain: %s", domain_.c_str());
135 return false;
136 }
137 else
138 return true;
139}
140
141void client_servlet::lookup_dns()
142{

Callers

nothing calls this directly

Calls 7

get_addrsMethod · 0.80
beginMethod · 0.80
clearMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45
emptyMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected