| 198 | } |
| 199 | |
| 200 | bool AFCNetServiceManagerModule::AddNetConnectionBus(int client_bus_id, std::shared_ptr<AFINet> net_ptr) |
| 201 | { |
| 202 | if (client_bus_id <= 0 || net_ptr == nullptr) |
| 203 | { |
| 204 | return false; |
| 205 | } |
| 206 | |
| 207 | int self_bus_id = m_pBusModule->GetSelfBusID(); |
| 208 | return net_bus_relations_.insert(std::make_pair(self_bus_id, client_bus_id), net_ptr).second; |
| 209 | } |
| 210 | |
| 211 | bool AFCNetServiceManagerModule::RemoveNetConnectionBus(int client_bus_id) |
| 212 | { |
no test coverage detected