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

Method SendShutdown

src/network/network_admin.cpp:199–204  ·  view source on GitHub ↗

Tell the admin we're shutting down. */

Source from the content-addressed store, hash-verified

197
198/** Tell the admin we're shutting down. */
199NetworkRecvStatus ServerNetworkAdminSocketHandler::SendShutdown()
200{
201 auto p = std::make_unique<Packet>(this, ADMIN_PACKET_SERVER_SHUTDOWN);
202 this->SendPacket(std::move(p));
203 return NETWORK_RECV_STATUS_OKAY;
204}
205
206/** Tell the admin the date. */
207NetworkRecvStatus ServerNetworkAdminSocketHandler::SendDate()

Callers 1

NetworkDisconnectFunction · 0.45

Calls 1

SendPacketMethod · 0.45

Tested by

no test coverage detected