Pol  Revision:cb584c9
Pol::Network::PacketsSingleton Class Reference

#include <packetinterface.h>

+ Inheritance diagram for Pol::Network::PacketsSingleton:

Public Member Functions

 PacketsSingleton ()
 
 ~PacketsSingleton ()
 
size_t estimateSize () const
 
PacketInterfacegetPacket (u8 id, u16 sub=0)
 
PacketQueueMapgetPackets ()
 
void ReAddPacket (PacketInterface *pkt)
 

Private Attributes

PacketQueueMap packets
 

Detailed Description

Central class that holds every pkt object

This way client doesnt need to create pkts, just requests a object and after sending readds it

Definition at line 60 of file packetinterface.h.

Constructor & Destructor Documentation

Pol::Network::PacketsSingleton::PacketsSingleton ( )

Definition at line 34 of file packets.cpp.

References ENCRYPTEDPKTBUFFER, Pol::Core::PKTBI_22_APPROVED_ID, Pol::Core::PKTBI_2C_ID, Pol::Core::PKTBI_3A_ID, Pol::Core::PKTBI_3B_ID, Pol::Core::PKTBI_56_ID, Pol::Core::PKTBI_66_ID, Pol::Core::PKTBI_6C_ID, Pol::Core::PKTBI_6F_ID, Pol::Core::PKTBI_72_ID, Pol::Core::PKTBI_93_ID, Pol::Core::PKTBI_95_ID, Pol::Core::PKTBI_98_OUT_ID, Pol::Core::PKTBI_99_ID, Pol::Core::PKTBI_9A_ID, Pol::Core::PKTBI_B8_OUT_ID, Pol::Core::PKTBI_BF_ID, Pol::Core::PKTBI_C2_ID, Pol::Core::PKTBI_D6_OUT_ID, Pol::Core::PKTOUT_0B_ID, Pol::Core::PKTOUT_11_ID, Pol::Core::PKTOUT_17_ID, Pol::Core::PKTOUT_1A_ID, Pol::Core::PKTOUT_1B_ID, Pol::Core::PKTOUT_1C_ID, Pol::Core::PKTOUT_1D_ID, Pol::Core::PKTOUT_20_ID, Pol::Core::PKTOUT_21_ID, Pol::Core::PKTOUT_24_ID, Pol::Core::PKTOUT_25_ID, Pol::Core::PKTOUT_27_ID, Pol::Core::PKTOUT_29_ID, Pol::Core::PKTOUT_2D_ID, Pol::Core::PKTOUT_2E_ID, Pol::Core::PKTOUT_2F_ID, Pol::Core::PKTOUT_3C_ID, Pol::Core::PKTOUT_4F_ID, Pol::Core::PKTOUT_53_ID, Pol::Core::PKTOUT_54_ID, Pol::Core::PKTOUT_55_ID, Pol::Core::PKTOUT_65_ID, Pol::Core::PKTOUT_6D_ID, Pol::Core::PKTOUT_6E_ID, Pol::Core::PKTOUT_70_ID, Pol::Core::PKTOUT_74_ID, Pol::Core::PKTOUT_76_ID, Pol::Core::PKTOUT_77_ID, Pol::Core::PKTOUT_78_ID, Pol::Core::PKTOUT_7C_ID, Pol::Core::PKTOUT_82_ID, Pol::Core::PKTOUT_88_ID, Pol::Core::PKTOUT_89_ID, Pol::Core::PKTOUT_8C_ID, Pol::Core::PKTOUT_90_ID, Pol::Core::PKTOUT_9E_ID, Pol::Core::PKTOUT_A1_ID, Pol::Core::PKTOUT_A2_ID, Pol::Core::PKTOUT_A3_ID, Pol::Core::PKTOUT_A5_ID, Pol::Core::PKTOUT_A6_ID, Pol::Core::PKTOUT_A8_ID, Pol::Core::PKTOUT_A9_ID, Pol::Core::PKTOUT_AA_ID, Pol::Core::PKTOUT_AB_ID, Pol::Core::PKTOUT_AE_ID, Pol::Core::PKTOUT_AF_ID, Pol::Core::PKTOUT_B0_ID, Pol::Core::PKTOUT_B7_ID, Pol::Core::PKTOUT_B9_ID, Pol::Core::PKTOUT_BA_ID, Pol::Core::PKTOUT_BC_ID, Pol::Core::PKTOUT_C1_ID, Pol::Core::PKTOUT_C7_ID, Pol::Core::PKTOUT_CC_ID, Pol::Core::PKTOUT_DC_ID, Pol::Core::PKTOUT_DD_ID, Pol::Core::PKTOUT_DF_ID, Pol::Core::PKTOUT_E2_ID, Pol::Core::PKTOUT_E3_ID, Pol::Core::PKTOUT_F3_ID, Pol::Core::PKTOUT_F5_ID, Pol::Core::PKTOUT_F6_ID, and Pol::Core::PKTOUT_F7_ID.

Pol::Network::PacketsSingleton::~PacketsSingleton ( )

Definition at line 126 of file packets.cpp.

Member Function Documentation

size_t Pol::Network::PacketsSingleton::estimateSize ( ) const

Definition at line 153 of file packets.cpp.

PacketInterface * Pol::Network::PacketsSingleton::getPacket ( u8  id,
u16  sub = 0 
)

Definition at line 135 of file packets.cpp.

References Pol::Clib::hexint().

PacketQueueMap* Pol::Network::PacketsSingleton::getPackets ( )
inline

Definition at line 72 of file packetinterface.h.

References Pol::Network::PacketInterface::estimateSize().

void Pol::Network::PacketsSingleton::ReAddPacket ( PacketInterface pkt)

Definition at line 144 of file packets.cpp.

References Pol::Network::PacketInterface::getID().

Member Data Documentation

PacketQueueMap Pol::Network::PacketsSingleton::packets
private

Definition at line 67 of file packetinterface.h.


The documentation for this class was generated from the following files: