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

Method Receive_ADMIN_PING

src/network/network_admin.cpp:513–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513NetworkRecvStatus ServerNetworkAdminSocketHandler::Receive_ADMIN_PING(Packet &p)
514{
515 if (this->status <= ADMIN_STATUS_AUTHENTICATE) return this->SendError(NETWORK_ERROR_NOT_EXPECTED);
516
517 uint32_t d1 = p.Recv_uint32();
518
519 Debug(net, 6, "[admin] Ping from '{}' ({}): {}", this->admin_name, this->admin_version, d1);
520
521 return this->SendPong(d1);
522}
523
524/**
525 * Send console output of other clients.

Callers

nothing calls this directly

Calls 3

SendErrorMethod · 0.95
SendPongMethod · 0.95
Recv_uint32Method · 0.80

Tested by

no test coverage detected