QcClientLogin Class
The client's side of the login of a network game (decision E-252): answers the server's challenge with proofs of the password and of the player's identity for this server, the content packs and the wanted view distance, and keeps what the server told about itself. More...
| Header: | #include <clientcore/session/QcClientLogin.h> |
Public Types
| struct | Credentials |
Public Functions
| QcMsg::LoginResponse | answer(const QcMsg::LoginChallenge &challenge) |
| const QString & | motd() const |
| bool | passwordMissing() const |
| const QString & | serverName() const |
| void | setCredentials(QcClientLogin::Credentials credentials) |
Detailed Description
Member Function Documentation
QcMsg::LoginResponse QcClientLogin::answer(const QcMsg::LoginChallenge &challenge)
Returns the answer to the server's challenge and keeps the server's name and MOTD.
const QString &QcClientLogin::motd() const
Returns the server's message of the day sent with its challenge; empty before.
bool QcClientLogin::passwordMissing() const
Returns whether the server asked for a password and the client had none.
const QString &QcClientLogin::serverName() const
Returns the server's name sent with its challenge; empty before (and for the in-process host).
void QcClientLogin::setCredentials(QcClientLogin::Credentials credentials)
Sets the credentials the next answer() uses.