| 722 | } |
| 723 | |
| 724 | void connect_manager::set_status(pools_t& pools, const char* addr, bool alive) |
| 725 | { |
| 726 | string buf1(addr), buf2; |
| 727 | buf1.lower(); |
| 728 | |
| 729 | for (pools_t::iterator it = pools.begin(); it != pools.end(); ++it) { |
| 730 | get_addr((*it)->get_key(), buf2); |
| 731 | if (buf1 == buf2) { |
| 732 | (*it)->set_alive(alive); |
| 733 | break; |
| 734 | } |
| 735 | } |
| 736 | } |
| 737 | |
| 738 | void connect_manager::get_key(const char* addr, string& key) |
| 739 | { |