|
eolib-cpp 0.1.0-beta.7
Core C++ library for writing Endless Online applications
|
Requesting a file. More...
#include <eolib/protocol/net/client/packets.hpp>
Inherits eolib::protocol::net::Packet.
Classes | |
| class | FileTypeDataEmf |
| Data associated with file_type value Emf. More... | |
| class | FileTypeDataEif |
| Data associated with file_type value Eif. More... | |
| class | FileTypeDataEnf |
| Data associated with file_type value Enf. More... | |
| class | FileTypeDataEsf |
| Data associated with file_type value Esf. More... | |
| class | FileTypeDataEcf |
| Data associated with file_type value Ecf. More... | |
Public Types | |
| using | FileTypeData = std::variant<std::monostate, FileTypeDataEmf, FileTypeDataEif, FileTypeDataEnf, FileTypeDataEsf, FileTypeDataEcf> |
| Data associated with different values of the file_type field. | |
Public Member Functions | |
| const FileTypeDataEmf * | AsEmf () const noexcept |
| Gets the data associated with file_type value Emf. | |
| FileTypeDataEmf * | AsEmf () noexcept |
| Gets the data associated with file_type value Emf. | |
| const FileTypeDataEif * | AsEif () const noexcept |
| Gets the data associated with file_type value Eif. | |
| FileTypeDataEif * | AsEif () noexcept |
| Gets the data associated with file_type value Eif. | |
| const FileTypeDataEnf * | AsEnf () const noexcept |
| Gets the data associated with file_type value Enf. | |
| FileTypeDataEnf * | AsEnf () noexcept |
| Gets the data associated with file_type value Enf. | |
| const FileTypeDataEsf * | AsEsf () const noexcept |
| Gets the data associated with file_type value Esf. | |
| FileTypeDataEsf * | AsEsf () noexcept |
| Gets the data associated with file_type value Esf. | |
| const FileTypeDataEcf * | AsEcf () const noexcept |
| Gets the data associated with file_type value Ecf. | |
| FileTypeDataEcf * | AsEcf () noexcept |
| Gets the data associated with file_type value Ecf. | |
| 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 WelcomeAgreeClientPacket &other) const |
| Compares this object with another for equality. | |
| bool | operator!= (const WelcomeAgreeClientPacket &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 WelcomeAgreeClientPacket | ForEmf (FileTypeDataEmf data) |
| Creates a new WelcomeAgreeClientPacket with file_type set to Emf. | |
| static WelcomeAgreeClientPacket | ForEif (FileTypeDataEif data) |
| Creates a new WelcomeAgreeClientPacket with file_type set to Eif. | |
| static WelcomeAgreeClientPacket | ForEnf (FileTypeDataEnf data) |
| Creates a new WelcomeAgreeClientPacket with file_type set to Enf. | |
| static WelcomeAgreeClientPacket | ForEsf (FileTypeDataEsf data) |
| Creates a new WelcomeAgreeClientPacket with file_type set to Esf. | |
| static WelcomeAgreeClientPacket | ForEcf (FileTypeDataEcf data) |
| Creates a new WelcomeAgreeClientPacket with file_type set to Ecf. | |
Public Attributes | |
| FileType | file_type {} |
| int | session_id {} |
| FileTypeData | file_type_data {} |
| Data associated with the file_type field. | |
Static Public Attributes | |
| static constexpr PacketFamily | FAMILY = PacketFamily::Welcome |
| The packet family associated with this packet. | |
| static constexpr PacketAction | ACTION = PacketAction::Agree |
| 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 |
Requesting a file.
| using eolib::protocol::net::client::WelcomeAgreeClientPacket::FileTypeData = std::variant<std::monostate, FileTypeDataEmf, FileTypeDataEif, FileTypeDataEnf, FileTypeDataEsf, FileTypeDataEcf> |
Data associated with different values of the file_type field.
|
inlinenoexcept |
Gets the data associated with file_type value Emf.
|
inlinenoexcept |
Gets the data associated with file_type value Emf.
|
inlinenoexcept |
Gets the data associated with file_type value Eif.
|
inlinenoexcept |
Gets the data associated with file_type value Eif.
|
inlinenoexcept |
Gets the data associated with file_type value Enf.
|
inlinenoexcept |
Gets the data associated with file_type value Enf.
|
inlinenoexcept |
Gets the data associated with file_type value Esf.
|
inlinenoexcept |
Gets the data associated with file_type value Esf.
|
inlinenoexcept |
Gets the data associated with file_type value Ecf.
|
inlinenoexcept |
Gets the data associated with file_type value Ecf.
|
static |
Creates a new WelcomeAgreeClientPacket with file_type set to Emf.
| data | the data associated with file_type Emf. |
|
static |
Creates a new WelcomeAgreeClientPacket with file_type set to Eif.
| data | the data associated with file_type Eif. |
|
static |
Creates a new WelcomeAgreeClientPacket with file_type set to Enf.
| data | the data associated with file_type Enf. |
|
static |
Creates a new WelcomeAgreeClientPacket with file_type set to Esf.
| data | the data associated with file_type Esf. |
|
static |
Creates a new WelcomeAgreeClientPacket with file_type set to Ecf.
| data | the data associated with file_type Ecf. |
|
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::client::WelcomeAgreeClientPacket::operator== | ( | const WelcomeAgreeClientPacket & | 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::client::WelcomeAgreeClientPacket::operator!= | ( | const WelcomeAgreeClientPacket & | 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.
| FileType eolib::protocol::net::client::WelcomeAgreeClientPacket::file_type {} |
| int eolib::protocol::net::client::WelcomeAgreeClientPacket::session_id {} |
| FileTypeData eolib::protocol::net::client::WelcomeAgreeClientPacket::file_type_data {} |
Data associated with the file_type field.