| 20 | } |
| 21 | |
| 22 | static void check_all_connections(void) |
| 23 | { |
| 24 | std::vector<acl::connect_pool*>& pools = __conn_manager->get_pools(); |
| 25 | std::vector<acl::connect_pool*>::const_iterator cit = pools.begin(); |
| 26 | for (; cit != pools.end(); ++cit) |
| 27 | printf(">>>addr: %s %s\r\n", (*cit)->get_addr(), |
| 28 | (*cit)->aliving() ? "alive" : "dead"); |
| 29 | } |
| 30 | |
| 31 | // ��ʼ������ |
| 32 | static void init(const char* addrs, int max, int min, int ttl, |