Send the client information about the server. */
| 340 | |
| 341 | /** Send the client information about the server. */ |
| 342 | NetworkRecvStatus ServerNetworkGameSocketHandler::SendGameInfo() |
| 343 | { |
| 344 | Debug(net, 9, "client[{}] SendGameInfo()", this->client_id); |
| 345 | |
| 346 | auto p = std::make_unique<Packet>(this, PACKET_SERVER_GAME_INFO, TCP_MTU); |
| 347 | SerializeNetworkGameInfo(*p, GetCurrentNetworkServerGameInfo()); |
| 348 | |
| 349 | this->SendPacket(std::move(p)); |
| 350 | |
| 351 | return NETWORK_RECV_STATUS_OKAY; |
| 352 | } |
| 353 | |
| 354 | /** |
| 355 | * Send an error to the client, and close its connection. |
no test coverage detected