Request a SERVER_LIST from the name server and a SERVICE_LIST from all servers in the list. Dumps the result to the given ostream.
- Parameters
-
out | ostream to which the received info is redirected |
Definition at line 684 of file ServiceList.cc.
References buffer, DimCurrentInfo::getString(), and kBold.
686 DimCurrentInfo info1(
"DIS_DNS/SERVER_LIST", const_cast<char*>(
""));
688 stringstream stream(info1.getString());
691 while (getline(stream, buffer,
'|'))
693 const string server = buffer.substr(0, buffer.find_first_of(
'@'));
697 out <<
kBold <<
" " << server << endl;
699 DimCurrentInfo info2((server+
"/SERVICE_LIST").c_str(), const_cast<char*>(
""));
703 stringstream stream2(info2.getString());
704 while (getline(stream2, buffer2,
'\n'))
709 out <<
" " << buffer2 << endl;