* Send an update for some client's information. * @param ci The information about a client. */
| 258 | * @param ci The information about a client. |
| 259 | */ |
| 260 | NetworkRecvStatus ServerNetworkAdminSocketHandler::SendClientUpdate(const NetworkClientInfo *ci) |
| 261 | { |
| 262 | auto p = std::make_unique<Packet>(this, ADMIN_PACKET_SERVER_CLIENT_UPDATE); |
| 263 | |
| 264 | p->Send_uint32(ci->client_id); |
| 265 | p->Send_string(ci->client_name); |
| 266 | p->Send_uint8 (ci->client_playas); |
| 267 | |
| 268 | this->SendPacket(std::move(p)); |
| 269 | |
| 270 | return NETWORK_RECV_STATUS_OKAY; |
| 271 | } |
| 272 | |
| 273 | /** |
| 274 | * Tell the admin that a client quit. |
no test coverage detected