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

Method SendGameInfo

src/network/network_server.cpp:342–352  ·  view source on GitHub ↗

Send the client information about the server. */

Source from the content-addressed store, hash-verified

340
341/** Send the client information about the server. */
342NetworkRecvStatus 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.

Callers 1

Calls 2

SerializeNetworkGameInfoFunction · 0.85
SendPacketMethod · 0.45

Tested by

no test coverage detected