* 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. */
| 290 | * @param error The error that was made. |
| 291 | */ |
| 292 | NetworkRecvStatus 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. |
no test coverage detected