28#ifndef HORIZON_AUTH_RAGEXE_PACKET_LENGTH_TABLE
29#define HORIZON_AUTH_RAGEXE_PACKET_LENGTH_TABLE
46class PacketLengthTable
52#define ADD_HPKT(i, j, k) _hpacket_length_table.insert(i, std::make_pair(j, std::make_shared<k>(s)))
53#define ADD_TPKT(i, j, k) _tpacket_length_table.insert(i, std::make_pair(j, std::make_shared<k>(s)))
#define ADD_HPKT(i, j, k)
#define ADD_TPKT(i, j, k)
Main object for the aegis packet: AC_ACCEPT_LOGIN.
Definition: TransmittedPackets.hpp:104
Main object for the aegis packet: AC_ACK_HASH.
Definition: TransmittedPackets.hpp:518
Main object for the aegis packet: AC_ASK_PNGAMEROOM.
Definition: TransmittedPackets.hpp:594
Main object for the aegis packet: AC_REFUSE_LOGIN.
Definition: TransmittedPackets.hpp:881
Main object for the aegis packet: CA_LOGIN2.
Definition: HandledPackets.hpp:437
Main object for the aegis packet: CA_LOGIN.
Definition: HandledPackets.hpp:394
Main object for the aegis packet: CA_REPLY_PNGAMEROOM.
Definition: HandledPackets.hpp:796
Main object for the aegis packet: CA_REQ_HASH.
Definition: HandledPackets.hpp:872
HPacketTablePairType get_hpacket_info(uint16_t packet_id)
Definition: PacketLengthTable.hpp:70
~PacketLengthTable()
Definition: PacketLengthTable.hpp:66
TPacketTablePairType get_tpacket_info(uint16_t packet_id)
Definition: PacketLengthTable.hpp:71
std::weak_ptr< AuthSession > _session
Definition: PacketLengthTable.hpp:80
PacketLengthTable(std::shared_ptr< AuthSession > s)
Definition: PacketLengthTable.hpp:49
LockedLookupTable< uint16_t, HPacketTablePairType > _hpacket_length_table
Definition: PacketLengthTable.hpp:78
std::shared_ptr< AuthSession > get_session()
Definition: PacketLengthTable.hpp:68
LockedLookupTable< uint16_t, TPacketTablePairType > _tpacket_length_table
Definition: PacketLengthTable.hpp:79
Value at(Key const &key, Value const &default_value=Value()) const
Definition: LockedLookupTable.hpp:63
std::pair< int16_t, HPacketStructPtrType > HPacketTablePairType
Definition: PacketLengthTable.hpp:41
std::shared_ptr< Base::NetworkPacket< AuthSession > > TPacketStructPtrType
Definition: PacketLengthTable.hpp:40
std::shared_ptr< Base::NetworkPacket< AuthSession > > HPacketStructPtrType
Definition: PacketLengthTable.hpp:39
std::pair< int16_t, TPacketStructPtrType > TPacketTablePairType
Definition: PacketLengthTable.hpp:42
Definition: Element.hpp:7