Horizon Official Technical Documentation
|
|
Main object for the aegis packet: CA_LOGIN. More...
#include <HandledPackets.hpp>
Public Member Functions | |
CA_LOGIN (std::shared_ptr< AuthSession > s) | |
virtual | ~CA_LOGIN () |
void | handle (ByteBuffer &&buf) |
CA_LOGIN. More... | |
void | deserialize (ByteBuffer &buf) |
ByteBuffer | serialize (int32_t version, std::string username, std::string password, uint8_t client_type) |
![]() | |
NetworkPacket (uint16_t packet_id, std::shared_ptr< AuthSession > s) | |
virtual | ~NetworkPacket () |
void | set_packet_id (uint16_t id) |
uint16_t | get_packet_id () |
ByteBuffer & | buf () |
std::shared_ptr< AuthSession > | get_session () |
Retrieves the session from this handler instance. More... | |
virtual void | handle (ByteBuffer &&buf) |
virtual void | deserialize (ByteBuffer &buf) |
void | transmit () |
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session. More... | |
void | transmit (std::size_t size) |
Send an Asynchronous packet by queueing a buffer of a particular size to the connected session. More... | |
Public Attributes | |
uint32_t | _version { 0 } |
Client Version Information. More... | |
char | _username [24] { 0 } |
Username. More... | |
char | _password [24] { 0 } |
Password. More... | |
uint8_t | _client_type { 0 } |
Client Type. More... | |
Additional Inherited Members | |
![]() | |
ByteBuffer | _buffer |
Buffer storage facility for the packet stream. More... | |
uint16_t | _packet_id |
ID of the network packet. More... | |
Main object for the aegis packet: CA_LOGIN.
|
inline |
|
inlinevirtual |
|
virtual |
Reimplemented from Horizon::Base::NetworkPacket< AuthSession >.
References _client_type, Horizon::Base::NetworkPacket< AuthSession >::_packet_id, _password, _username, _version, Horizon::Base::NetworkPacket< AuthSession >::buf(), and ByteBuffer::read().
Referenced by handle().
|
virtual |
Reimplemented from Horizon::Base::NetworkPacket< AuthSession >.
References _client_type, _password, _username, _version, Horizon::Base::NetworkPacket< AuthSession >::buf(), deserialize(), and Horizon::Base::NetworkPacket< AuthSession >::get_session().
ByteBuffer CA_LOGIN::serialize | ( | int32_t | version, |
std::string | username, | ||
std::string | password, | ||
uint8_t | client_type | ||
) |
References Horizon::Base::NetworkPacket< AuthSession >::_buffer, _client_type, Horizon::Base::NetworkPacket< AuthSession >::_packet_id, _password, _username, _version, ByteBuffer::append(), Horizon::Base::NetworkPacket< AuthSession >::buf(), MAX_PASSWORD_LENGTH, and MAX_USERNAME_LENGTH.
uint8_t Horizon::Auth::CA_LOGIN::_client_type { 0 } |
Client Type.
Referenced by deserialize(), handle(), and serialize().
char Horizon::Auth::CA_LOGIN::_password[24] { 0 } |
Password.
Referenced by deserialize(), handle(), and serialize().
char Horizon::Auth::CA_LOGIN::_username[24] { 0 } |
Username.
Referenced by deserialize(), handle(), and serialize().
uint32_t Horizon::Auth::CA_LOGIN::_version { 0 } |
Client Version Information.
Referenced by deserialize(), handle(), and serialize().