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

Method SendClientError

src/network/network_admin.cpp:292–301  ·  view source on GitHub ↗

* Tell the admin that a client made an error. * @param client_id The client that made the error. * @param error The error that was made. */

Source from the content-addressed store, hash-verified

290 * @param error The error that was made.
291 */
292NetworkRecvStatus ServerNetworkAdminSocketHandler::SendClientError(ClientID client_id, NetworkErrorCode error)
293{
294 auto p = std::make_unique<Packet>(this, ADMIN_PACKET_SERVER_CLIENT_ERROR);
295
296 p->Send_uint32(client_id);
297 p->Send_uint8 (error);
298 this->SendPacket(std::move(p));
299
300 return NETWORK_RECV_STATUS_OKAY;
301}
302
303/**
304 * Tell the admin that a new company was founded.

Callers 1

NetworkAdminClientErrorFunction · 0.80

Calls 3

Send_uint32Method · 0.80
Send_uint8Method · 0.45
SendPacketMethod · 0.45

Tested by

no test coverage detected