| 3 | #include "client/ClientManager.h" |
| 4 | |
| 5 | void ClientManager::set(ClientConnection* conn) |
| 6 | { |
| 7 | std::vector<ClientConnection*>::iterator it = conns_.begin(); |
| 8 | for (; it != conns_.end(); ++it) |
| 9 | { |
| 10 | if ((*it) == conn) |
| 11 | { |
| 12 | logger_warn("duplicate ClientConnection!"); |
| 13 | return; |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | conns_.push_back(conn); |
| 18 | } |
| 19 | |
| 20 | void ClientManager::del(ClientConnection* conn) |
| 21 | { |