Client status
Type CLIENT_STATUS
struct clientStatus
{
std::uint8_t status;
std::array<std::uint8_t, uuidSize> uuid;
clientStatus() : status(LOSE_CLIENT) {}
clientStatus(const std::string &cliUuid) : status(LOSE_CLIENT)
{
std::memmove(&uuid, cliUuid.data(), uuidSize);
}
clientStatus(const std::string &cliUuid, std::uint8_t status) : status(status)
{
std::memmove(&uuid, cliUuid.data(), uuidSize);
}
};
The client must listen at any time for this type of packet to handle their game properly.