* Send a command for logging purposes. * @param client_id The client executing the command. * @param cp The command that would be executed. */
| 604 | * @param cp The command that would be executed. |
| 605 | */ |
| 606 | NetworkRecvStatus ServerNetworkAdminSocketHandler::SendCmdLogging(ClientID client_id, const CommandPacket &cp) |
| 607 | { |
| 608 | auto p = std::make_unique<Packet>(this, ADMIN_PACKET_SERVER_CMD_LOGGING); |
| 609 | |
| 610 | p->Send_uint32(client_id); |
| 611 | p->Send_uint8 (cp.company); |
| 612 | p->Send_uint16(cp.cmd); |
| 613 | p->Send_buffer(cp.data); |
| 614 | p->Send_uint32(cp.frame); |
| 615 | |
| 616 | this->SendPacket(std::move(p)); |
| 617 | |
| 618 | return NETWORK_RECV_STATUS_OKAY; |
| 619 | } |
| 620 | |
| 621 | /*********** |
| 622 | * Receiving functions |
no test coverage detected