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

Function add_dns

lib_acl_cpp/samples/aio/websocket/main.cpp:250–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250static void add_dns(std::vector<acl::string>& name_servers, const char* s)
251{
252 acl::string buf(s);
253 const std::vector<acl::string>& tokens = buf.split2(",; \t");
254 for (std::vector<acl::string>::const_iterator cit = tokens.begin();
255 cit != tokens.end(); ++cit) {
256
257 name_servers.push_back(*cit);
258 }
259}
260
261int main(int argc, char* argv[])
262{

Callers 1

mainFunction · 0.70

Calls 3

beginMethod · 0.80
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…