| 169 | } |
| 170 | |
| 171 | void AFCNetClientService::LogServerInfo() |
| 172 | { |
| 173 | LogServerInfo("This is a client, begin to print Server Info----------------------------------"); |
| 174 | |
| 175 | for (auto iter : real_connections_) |
| 176 | { |
| 177 | auto connection_data = iter.second; |
| 178 | if (connection_data != nullptr) |
| 179 | { |
| 180 | std::string info = ARK_FORMAT("TargetBusID={} State={} url={}", connection_data->server_bus_id_, |
| 181 | connection_data->net_state_, connection_data->endpoint_.ToString()); |
| 182 | LogServerInfo(info); |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | LogServerInfo("This is a client, end to print Server Info----------------------------------"); |
| 187 | } |
| 188 | |
| 189 | void AFCNetClientService::KeepAlive(std::shared_ptr<AFConnectionData> pServerData) |
| 190 | { |