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

Method SendRconEnd

src/network/network_admin.cpp:461–469  ·  view source on GitHub ↗

* Send a notification indicating the rcon command has completed. * @param command The original command sent. */

Source from the content-addressed store, hash-verified

459 * @param command The original command sent.
460 */
461NetworkRecvStatus ServerNetworkAdminSocketHandler::SendRconEnd(std::string_view command)
462{
463 auto p = std::make_unique<Packet>(this, ADMIN_PACKET_SERVER_RCON_END);
464
465 p->Send_string(command);
466 this->SendPacket(std::move(p));
467
468 return NETWORK_RECV_STATUS_OKAY;
469}
470
471/**
472 * Send the reply of an rcon command.

Callers 1

Receive_ADMIN_RCONMethod · 0.95

Calls 2

Send_stringMethod · 0.80
SendPacketMethod · 0.45

Tested by

no test coverage detected