Send an update about the max company/spectator counts. */
| 809 | |
| 810 | /** Send an update about the max company/spectator counts. */ |
| 811 | NetworkRecvStatus ServerNetworkGameSocketHandler::SendConfigUpdate() |
| 812 | { |
| 813 | Debug(net, 9, "client[{}] SendConfigUpdate()", this->client_id); |
| 814 | |
| 815 | auto p = std::make_unique<Packet>(this, PACKET_SERVER_CONFIG_UPDATE); |
| 816 | |
| 817 | p->Send_uint8(_settings_client.network.max_companies); |
| 818 | p->Send_string(_settings_client.network.server_name); |
| 819 | this->SendPacket(std::move(p)); |
| 820 | return NETWORK_RECV_STATUS_OKAY; |
| 821 | } |
| 822 | |
| 823 | /*********** |
| 824 | * Receiving functions |
no test coverage detected