Horizon Official Technical Documentation
|
|
Main object for the aegis packet: HC_SECOND_PASSWD_LOGIN. More...
#include <TransmittedPackets.hpp>
Public Member Functions | |
HC_SECOND_PASSWD_LOGIN (std::shared_ptr< CharSession > s) | |
virtual | ~HC_SECOND_PASSWD_LOGIN () |
void | deliver (hc_pincode_state_type state) |
HC_SECOND_PASSWD_LOGIN. More... | |
void | deliver (hc_pincode_state_type state, hc_pincode_login_response2 state2) |
ByteBuffer & | serialize () |
![]() | |
NetworkPacket (uint16_t packet_id, std::shared_ptr< CharSession > s) | |
virtual | ~NetworkPacket () |
void | set_packet_id (uint16_t id) |
uint16_t | get_packet_id () |
ByteBuffer & | buf () |
std::shared_ptr< CharSession > | 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 | _pincode_seed { 0 } |
uint32_t | _account_id { 0 } |
hc_pincode_state_type | _state { PINCODE_CORRECT } |
hc_pincode_login_response2 | _state2 { PINCODE_LOGIN_FLAG_WRONG } |
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: HC_SECOND_PASSWD_LOGIN.
|
inline |
|
inlinevirtual |
void HC_SECOND_PASSWD_LOGIN::deliver | ( | hc_pincode_state_type | state | ) |
References _account_id, _pincode_seed, _state, Horizon::Base::NetworkPacket< CharSession >::get_session(), serialize(), and Horizon::Base::NetworkPacket< CharSession >::transmit().
Referenced by Horizon::Char::CharClientInterface::authorize_new_connection(), deliver(), Horizon::Char::CharClientInterface::pincode_change(), Horizon::Char::CharClientInterface::pincode_create(), and Horizon::Char::CharClientInterface::pincode_verify().
void HC_SECOND_PASSWD_LOGIN::deliver | ( | hc_pincode_state_type | state, |
hc_pincode_login_response2 | state2 | ||
) |
References _state2, and deliver().
ByteBuffer & HC_SECOND_PASSWD_LOGIN::serialize | ( | ) |
References _account_id, Horizon::Base::NetworkPacket< CharSession >::_packet_id, _pincode_seed, _state, _state2, and Horizon::Base::NetworkPacket< CharSession >::buf().
Referenced by deliver().
uint32_t Horizon::Char::HC_SECOND_PASSWD_LOGIN::_account_id { 0 } |
Referenced by deliver(), and serialize().
uint32_t Horizon::Char::HC_SECOND_PASSWD_LOGIN::_pincode_seed { 0 } |
Referenced by deliver(), and serialize().
hc_pincode_state_type Horizon::Char::HC_SECOND_PASSWD_LOGIN::_state { PINCODE_CORRECT } |
Referenced by deliver(), and serialize().
hc_pincode_login_response2 Horizon::Char::HC_SECOND_PASSWD_LOGIN::_state2 { PINCODE_LOGIN_FLAG_WRONG } |
Referenced by deliver(), and serialize().