| 301 | } |
| 302 | |
| 303 | void AFCNetClientService::OnNetMsg(const AFNetMsg* msg) |
| 304 | { |
| 305 | auto it = net_msg_callbacks_.find(msg->GetMsgId()); |
| 306 | |
| 307 | if (it != net_msg_callbacks_.end()) |
| 308 | { |
| 309 | (it->second)(msg); |
| 310 | } |
| 311 | else |
| 312 | { |
| 313 | ARK_LOG_ERROR("Invalid message, id = {}", msg->GetMsgId()); |
| 314 | // TODO:forward to other server process |
| 315 | } |
| 316 | } |
| 317 | |
| 318 | void AFCNetClientService::OnNetEvent(const AFNetEvent* event) |
| 319 | { |