| 169 | } |
| 170 | |
| 171 | static bool test_info(acl::disque& cmd, int i) |
| 172 | { |
| 173 | cmd.clear(); |
| 174 | std::map<acl::string, acl::string> infos; |
| 175 | if (cmd.info(infos) == false) |
| 176 | { |
| 177 | printf("info error: %s\r\n", cmd.result_error()); |
| 178 | return false; |
| 179 | } |
| 180 | else if (i >= 10) |
| 181 | return true; |
| 182 | |
| 183 | std::map<acl::string, acl::string>::const_iterator cit; |
| 184 | for (cit = infos.begin(); cit != infos.end(); ++cit) |
| 185 | printf("%s: %s\r\n", cit->first.c_str(), cit->second.c_str()); |
| 186 | return true; |
| 187 | } |
| 188 | |
| 189 | static bool test_hello(acl::disque& cmd, int i) |
| 190 | { |