|
eolib-cpp 0.1.0-beta.7
Core C++ library for writing Endless Online applications
|
Login reply. More...
#include <eolib/protocol/net/server/packets.hpp>
Inherits eolib::protocol::net::Packet.
Classes | |
| class | ReplyCodeDataWrongUser |
| Data associated with reply_code value WrongUser. More... | |
| class | ReplyCodeDataWrongUserPassword |
| Data associated with reply_code value WrongUserPassword. More... | |
| class | ReplyCodeDataOk |
| Data associated with reply_code value Ok. More... | |
| class | ReplyCodeDataBanned |
| Data associated with reply_code value Banned. More... | |
| class | ReplyCodeDataLoggedIn |
| Data associated with reply_code value LoggedIn. More... | |
| class | ReplyCodeDataBusy |
| Data associated with reply_code value Busy. More... | |
Public Types | |
| using | ReplyCodeData = std::variant<std::monostate, ReplyCodeDataWrongUser, ReplyCodeDataWrongUserPassword, ReplyCodeDataOk, ReplyCodeDataBanned, ReplyCodeDataLoggedIn, ReplyCodeDataBusy> |
| Data associated with different values of the reply_code field. | |
Public Member Functions | |
| const ReplyCodeDataWrongUser * | AsWrongUser () const noexcept |
| Gets the data associated with reply_code value WrongUser. | |
| ReplyCodeDataWrongUser * | AsWrongUser () noexcept |
| Gets the data associated with reply_code value WrongUser. | |
| const ReplyCodeDataWrongUserPassword * | AsWrongUserPassword () const noexcept |
| Gets the data associated with reply_code value WrongUserPassword. | |
| ReplyCodeDataWrongUserPassword * | AsWrongUserPassword () noexcept |
| Gets the data associated with reply_code value WrongUserPassword. | |
| const ReplyCodeDataOk * | AsOk () const noexcept |
| Gets the data associated with reply_code value Ok. | |
| ReplyCodeDataOk * | AsOk () noexcept |
| Gets the data associated with reply_code value Ok. | |
| const ReplyCodeDataBanned * | AsBanned () const noexcept |
| Gets the data associated with reply_code value Banned. | |
| ReplyCodeDataBanned * | AsBanned () noexcept |
| Gets the data associated with reply_code value Banned. | |
| const ReplyCodeDataLoggedIn * | AsLoggedIn () const noexcept |
| Gets the data associated with reply_code value LoggedIn. | |
| ReplyCodeDataLoggedIn * | AsLoggedIn () noexcept |
| Gets the data associated with reply_code value LoggedIn. | |
| const ReplyCodeDataBusy * | AsBusy () const noexcept |
| Gets the data associated with reply_code value Busy. | |
| ReplyCodeDataBusy * | AsBusy () noexcept |
| Gets the data associated with reply_code value Busy. | |
| PacketFamily | Family () const noexcept override |
| Gets the packet family associated with this packet. | |
| PacketAction | Action () const noexcept override |
| Gets the packet action associated with this packet. | |
| int | ByteSize () const noexcept override |
| Gets the size of the data that this object was deserialized from. | |
| void | Serialize (data::EoWriter &writer) const override |
| Serializes this object to the provided writer. | |
| void | Deserialize (data::EoReader &reader) override |
| Deserializes this object from the provided reader, replacing its current data. | |
| std::string | ToString () const override |
| Gets a human-readable representation of this object, for debugging purposes. | |
| bool | operator== (const LoginReplyServerPacket &other) const |
| Compares this object with another for equality. | |
| bool | operator!= (const LoginReplyServerPacket &other) const |
| Compares this object with another for inequality. | |
| Public Member Functions inherited from eolib::protocol::Serializable | |
| virtual | ~Serializable ()=default |
Static Public Member Functions | |
| static LoginReplyServerPacket | ForWrongUser () |
| Creates a new LoginReplyServerPacket with reply_code set to WrongUser. | |
| static LoginReplyServerPacket | ForWrongUserPassword () |
| Creates a new LoginReplyServerPacket with reply_code set to WrongUserPassword. | |
| static LoginReplyServerPacket | ForOk (ReplyCodeDataOk data) |
| Creates a new LoginReplyServerPacket with reply_code set to Ok. | |
| static LoginReplyServerPacket | ForBanned () |
| Creates a new LoginReplyServerPacket with reply_code set to Banned. | |
| static LoginReplyServerPacket | ForLoggedIn () |
| Creates a new LoginReplyServerPacket with reply_code set to LoggedIn. | |
| static LoginReplyServerPacket | ForBusy () |
| Creates a new LoginReplyServerPacket with reply_code set to Busy. | |
Public Attributes | |
| LoginReply | reply_code {} |
| ReplyCodeData | reply_code_data {} |
| Data associated with the reply_code field. | |
Static Public Attributes | |
| static constexpr PacketFamily | FAMILY = PacketFamily::Login |
| The packet family associated with this packet. | |
| static constexpr PacketAction | ACTION = PacketAction::Reply |
| The packet action associated with this packet. | |
Additional Inherited Members | |
| Protected Member Functions inherited from eolib::protocol::Serializable | |
| Serializable ()=default | |
| Serializable (const Serializable &)=default | |
| Serializable (Serializable &&)=default | |
| Serializable & | operator= (const Serializable &)=default |
| Serializable & | operator= (Serializable &&)=default |
Login reply.
| using eolib::protocol::net::server::LoginReplyServerPacket::ReplyCodeData = std::variant<std::monostate, ReplyCodeDataWrongUser, ReplyCodeDataWrongUserPassword, ReplyCodeDataOk, ReplyCodeDataBanned, ReplyCodeDataLoggedIn, ReplyCodeDataBusy> |
Data associated with different values of the reply_code field.
|
inlinenoexcept |
Gets the data associated with reply_code value WrongUser.
|
inlinenoexcept |
Gets the data associated with reply_code value WrongUser.
|
inlinenoexcept |
Gets the data associated with reply_code value WrongUserPassword.
|
inlinenoexcept |
Gets the data associated with reply_code value WrongUserPassword.
|
inlinenoexcept |
Gets the data associated with reply_code value Ok.
|
inlinenoexcept |
Gets the data associated with reply_code value Ok.
|
inlinenoexcept |
Gets the data associated with reply_code value Banned.
|
inlinenoexcept |
Gets the data associated with reply_code value Banned.
|
inlinenoexcept |
Gets the data associated with reply_code value LoggedIn.
|
inlinenoexcept |
Gets the data associated with reply_code value LoggedIn.
|
inlinenoexcept |
Gets the data associated with reply_code value Busy.
|
inlinenoexcept |
Gets the data associated with reply_code value Busy.
|
static |
Creates a new LoginReplyServerPacket with reply_code set to WrongUser.
|
static |
Creates a new LoginReplyServerPacket with reply_code set to WrongUserPassword.
|
static |
Creates a new LoginReplyServerPacket with reply_code set to Ok.
| data | the data associated with reply_code Ok. |
|
static |
Creates a new LoginReplyServerPacket with reply_code set to Banned.
|
static |
Creates a new LoginReplyServerPacket with reply_code set to LoggedIn.
|
static |
Creates a new LoginReplyServerPacket with reply_code set to Busy.
|
inlineoverridevirtualnoexcept |
Gets the packet family associated with this packet.
Implements eolib::protocol::net::Packet.
|
inlineoverridevirtualnoexcept |
Gets the packet action associated with this packet.
Implements eolib::protocol::net::Packet.
|
overridevirtualnoexcept |
Gets the size of the data that this object was deserialized from.
Implements eolib::protocol::Serializable.
|
overridevirtual |
Serializes this object to the provided writer.
| writer | the writer that the data will be written to. |
| SerializationError | if the object's data is invalid for serialization. |
Implements eolib::protocol::Serializable.
|
overridevirtual |
Deserializes this object from the provided reader, replacing its current data.
| reader | the reader that the data will be read from. |
Implements eolib::protocol::Serializable.
|
overridevirtual |
Gets a human-readable representation of this object, for debugging purposes.
Implements eolib::protocol::Serializable.
| bool eolib::protocol::net::server::LoginReplyServerPacket::operator== | ( | const LoginReplyServerPacket & | other | ) | const |
Compares this object with another for equality.
The deserialized byte size is not compared.
| other | the object to compare with. |
| bool eolib::protocol::net::server::LoginReplyServerPacket::operator!= | ( | const LoginReplyServerPacket & | other | ) | const |
Compares this object with another for inequality.
The deserialized byte size is not compared.
| other | the object to compare with. |
|
staticconstexpr |
The packet family associated with this packet.
|
staticconstexpr |
The packet action associated with this packet.
| LoginReply eolib::protocol::net::server::LoginReplyServerPacket::reply_code {} |
| ReplyCodeData eolib::protocol::net::server::LoginReplyServerPacket::reply_code_data {} |
Data associated with the reply_code field.