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

Method SendPong

src/network/network_admin.cpp:561–569  ·  view source on GitHub ↗

Send ping-reply (pong) to admin **/

Source from the content-addressed store, hash-verified

559
560/** Send ping-reply (pong) to admin **/
561NetworkRecvStatus ServerNetworkAdminSocketHandler::SendPong(uint32_t d1)
562{
563 auto p = std::make_unique<Packet>(this, ADMIN_PACKET_SERVER_PONG);
564
565 p->Send_uint32(d1);
566 this->SendPacket(std::move(p));
567
568 return NETWORK_RECV_STATUS_OKAY;
569}
570
571/** Send the names of the commands. */
572NetworkRecvStatus ServerNetworkAdminSocketHandler::SendCmdNames()

Callers 1

Receive_ADMIN_PINGMethod · 0.95

Calls 2

Send_uint32Method · 0.80
SendPacketMethod · 0.45

Tested by

no test coverage detected