MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SendConfigUpdate

Method SendConfigUpdate

src/network/network_server.cpp:811–821  ·  view source on GitHub ↗

Send an update about the max company/spectator counts. */

Source from the content-addressed store, hash-verified

809
810/** Send an update about the max company/spectator counts. */
811NetworkRecvStatus 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

Callers 2

Receive_CLIENT_MAP_OKMethod · 0.95

Calls 3

Send_stringMethod · 0.80
Send_uint8Method · 0.45
SendPacketMethod · 0.45

Tested by

no test coverage detected