QtCraft API C++ classes QML types Handbook

QcMsg::LoginResponse Struct

struct QcMsg::LoginResponse

Client -> server: the answer to LoginChallenge. More...

Header: #include <common/protocol/QcLoginMessages.h>

Public Variables

QByteArray identity
QByteArray identityProof
QList<QcPackFingerprint> packs
QByteArray passwordProof
qint32 viewDistance

Static Public Members

const qsizetype maxProofBytes

Detailed Description

Member Variable Documentation

QByteArray LoginResponse::identity

The identity itself, only when the server does not know one for the name yet.

QByteArray LoginResponse::identityProof

HMAC of the nonce with the player's identity for this server.

const qsizetype LoginResponse::maxProofBytes

The longest proof or identity; the decoder refuses longer ones.

QList<QcPackFingerprint> LoginResponse::packs

The client's content packs, which the server compares with its own.

QByteArray LoginResponse::passwordProof

HMAC of the nonce with the password key; empty without a password.

qint32 LoginResponse::viewDistance

Chunks the client wants streamed (0: the server's limit).