Pol  Revision:4b29d2b
packets.h File Reference
#include <boost/noncopyable.hpp>
#include <cstring>
#include <limits>
#include <map>
#include <memory>
#include <mutex>
#include <queue>
#include <string.h>
#include <type_traits>
#include "../../clib/clib_endian.h"
#include "../../clib/compilerspecifics.h"
#include "../../clib/logfacility.h"
#include "../../clib/passert.h"
#include "../../clib/rawtypes.h"
#include "../../clib/spinlock.h"
#include "../../clib/strutil.h"
#include "../layers.h"
#include "../pktboth.h"
#include "../pktbothid.h"
#include "../pktdef.h"
#include "../pktoutid.h"
#include "../realms.h"
#include "../uconst.h"
#include "packetinterface.h"

Go to the source code of this file.

Classes

class  Pol::Network::PacketWriterDefs::EmptyBufferTemplate< _id, _size >
 
class  Pol::Network::PacketWriterDefs::PacketQueueSingle
 
class  Pol::Network::PacketWriterDefs::PacketQueueSubs
 
class  Pol::Network::PacketWriterDefs::PacketTemplate< _id, _size >
 
class  Pol::Network::PacketWriterDefs::PacketTemplateSub< _id, _suboff, _sub, _size >
 
class  Pol::Network::PacketWriterDefs::PacketWriter< _id, _size, _sub >
 
struct  Pol::Network::PacketWriterDefs::PktWriterTemplateSpecs::WriteHelper< T >
 
struct  Pol::Network::PacketWriterDefs::PktWriterTemplateSpecs::WriteHelper< s16 >
 
struct  Pol::Network::PacketWriterDefs::PktWriterTemplateSpecs::WriteHelper< s32 >
 
struct  Pol::Network::PacketWriterDefs::PktWriterTemplateSpecs::WriteHelper< s8 >
 
struct  Pol::Network::PacketWriterDefs::PktWriterTemplateSpecs::WriteHelper< u16 >
 
struct  Pol::Network::PacketWriterDefs::PktWriterTemplateSpecs::WriteHelper< u32 >
 
struct  Pol::Network::PacketWriterDefs::PktWriterTemplateSpecs::WriteHelper< u8 >
 

Namespaces

 Pol
 
 Pol::Network
 
 Pol::Network::PacketWriterDefs
 
 Pol::Network::PacketWriterDefs::PktWriterTemplateSpecs
 

Macros

#define ENCRYPTEDPKTBUFFER   static_cast<u8>( 0 )
 
#define MAX_PACKETS_INSTANCES   100
 

Typedefs

typedef PacketWriterDefs::EmptyBufferTemplate< ENCRYPTEDPKTBUFFER, 0xFFFF > Pol::Network::EncryptedPktBuffer
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_0B_ID, 7 > Pol::Network::PktOut_0B
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_11_ID, 121 > Pol::Network::PktOut_11
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_17_ID, 12 > Pol::Network::PktOut_17
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_1A_ID, 20 > Pol::Network::PktOut_1A
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_1B_ID, 37 > Pol::Network::PktOut_1B
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_1C_ID, 44+SPEECH_MAX_LEN+1 > Pol::Network::PktOut_1C
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_1D_ID, 5 > Pol::Network::PktOut_1D
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_20_ID, 19 > Pol::Network::PktOut_20
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_21_ID, 8 > Pol::Network::PktOut_21
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_22_APPROVED_ID, 3 > Pol::Network::PktOut_22
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_24_ID, 9 > Pol::Network::PktOut_24
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_25_ID, 21 > Pol::Network::PktOut_25
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_27_ID, 2 > Pol::Network::PktOut_27
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_29_ID, 1 > Pol::Network::PktOut_29
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_2C_ID, 2 > Pol::Network::PktOut_2C
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_2D_ID, 17 > Pol::Network::PktOut_2D
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_2E_ID, 15 > Pol::Network::PktOut_2E
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_2F_ID, 10 > Pol::Network::PktOut_2F
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_3A_ID, 6+100 *9 > Pol::Network::PktOut_3A
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_3B_ID, 8 > Pol::Network::PktOut_3B
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_3C_ID, 5+MAX_CONTAINER_ITEMS *20 > Pol::Network::PktOut_3C
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_4F_ID, 2 > Pol::Network::PktOut_4F
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_53_ID, 2 > Pol::Network::PktOut_53
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_54_ID, 12 > Pol::Network::PktOut_54
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_55_ID, 1 > Pol::Network::PktOut_55
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_56_ID, 11 > Pol::Network::PktOut_56
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_65_ID, 4 > Pol::Network::PktOut_65
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_66_ID, 0xFFFF > Pol::Network::PktOut_66
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_6C_ID, 19 > Pol::Network::PktOut_6C
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_6D_ID, 3 > Pol::Network::PktOut_6D
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_6E_ID, 14 > Pol::Network::PktOut_6E
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_6F_ID, 47 > Pol::Network::PktOut_6F
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_70_ID, 28 > Pol::Network::PktOut_70
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_72_ID, 5 > Pol::Network::PktOut_72
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_74_ID, 0xFFFF > Pol::Network::PktOut_74
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_76_ID, 16 > Pol::Network::PktOut_76
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_77_ID, 17 > Pol::Network::PktOut_77
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_78_ID, 19+(9 *Core::HIGHEST_LAYER)+4 > Pol::Network::PktOut_78
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_7C_ID, 2000 > Pol::Network::PktOut_7C
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_82_ID, 2 > Pol::Network::PktOut_82
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_88_ID, 66 > Pol::Network::PktOut_88
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_89_ID, 7+(5 *(Core::NUM_LAYERS+1))+1 > Pol::Network::PktOut_89
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_8C_ID, 11 > Pol::Network::PktOut_8C
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_90_ID, 19 > Pol::Network::PktOut_90
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_93_ID, 99 > Pol::Network::PktOut_93
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_95_ID, 9 > Pol::Network::PktOut_95
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_98_OUT_ID, 37 > Pol::Network::PktOut_98
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_99_ID, 30 > Pol::Network::PktOut_99
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_9A_ID, 16 > Pol::Network::PktOut_9A
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_9E_ID, 0xFFFF > Pol::Network::PktOut_9E
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_A1_ID, 9 > Pol::Network::PktOut_A1
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_A2_ID, 9 > Pol::Network::PktOut_A2
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_A3_ID, 9 > Pol::Network::PktOut_A3
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_A5_ID, URL_MAX_LEN+4 > Pol::Network::PktOut_A5
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_A6_ID, 10010 > Pol::Network::PktOut_A6
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_A8_ID, 2000 > Pol::Network::PktOut_A8
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_A9_ID, 10000 > Pol::Network::PktOut_A9
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_AA_ID, 5 > Pol::Network::PktOut_AA
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_AB_ID, 531 > Pol::Network::PktOut_AB
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_AE_ID,(SPEECH_MAX_LEN+1)*2+48 > Pol::Network::PktOut_AE
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_AF_ID, 13 > Pol::Network::PktOut_AF
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_B0_ID, 0xFFFF > Pol::Network::PktOut_B0
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_B7_ID, 521 > Pol::Network::PktOut_B7
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_B8_OUT_ID, 7+5 *(SPEECH_MAX_LEN+1)> Pol::Network::PktOut_B8
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_B9_ID, 5 > Pol::Network::PktOut_B9
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_BA_ID, 10 > Pol::Network::PktOut_BA
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_BC_ID, 3 > Pol::Network::PktOut_BC
 
typedef PacketWriterDefs::PacketTemplateSub< Core::PKTBI_BF_ID, 3, Core::PKTBI_BF::TYPE_OBJECT_CACHE, 5+8 > Pol::Network::PktOut_BF_Sub10
 
typedef PacketWriterDefs::PacketTemplateSub< Core::PKTBI_BF_ID, 3, Core::PKTBI_BF::TYPE_DISPLAY_POPUP_MENU, 0xFFFF > Pol::Network::PktOut_BF_Sub14
 
typedef PacketWriterDefs::PacketTemplateSub< Core::PKTBI_BF_ID, 3, Core::PKTBI_BF::TYPE_CLOSE_WINDOW, 5+8 > Pol::Network::PktOut_BF_Sub16
 
typedef PacketWriterDefs::PacketTemplateSub< Core::PKTBI_BF_ID, 3, Core::PKTBI_BF::TYPE_ENABLE_MAP_DIFFS, 5+4+MAX_NUMER_REALMS *8 > Pol::Network::PktOut_BF_Sub18
 
typedef PacketWriterDefs::PacketTemplateSub< Core::PKTBI_BF_ID, 3, Core::PKTBI_BF::TYPE_EXTENDED_STATS_OUT, 5+7 > Pol::Network::PktOut_BF_Sub19
 
typedef PacketWriterDefs::PacketTemplateSub< Core::PKTBI_BF_ID, 3, Core::PKTBI_BF::TYPE_NEW_SPELLBOOK, 5+18 > Pol::Network::PktOut_BF_Sub1B
 
typedef PacketWriterDefs::PacketTemplateSub< Core::PKTBI_BF_ID, 3, Core::PKTBI_BF::TYPE_CUSTOM_HOUSE_SHORT, 5+8 > Pol::Network::PktOut_BF_Sub1D
 
typedef PacketWriterDefs::PacketTemplateSub< Core::PKTBI_BF_ID, 3, Core::PKTBI_BF::TYPE_ACTIVATE_CUSTOM_HOUSE_TOOL, 5+12 > Pol::Network::PktOut_BF_Sub20
 
typedef PacketWriterDefs::PacketTemplateSub< Core::PKTBI_BF_ID, 3, Core::PKTBI_BF::TYPE_DAMAGE, 5+6 > Pol::Network::PktOut_BF_Sub22
 
typedef PacketWriterDefs::PacketTemplateSub< Core::PKTBI_BF_ID, 3, Core::PKTBI_BF::TYPE_CHARACTER_RACE_CHANGER, 5+2 > Pol::Network::PktOut_BF_Sub2A
 
typedef PacketWriterDefs::PacketTemplateSub< Core::PKTBI_BF_ID, 3, Core::PKTBI_BF::TYPE_CLOSE_GUMP, 5+8 > Pol::Network::PktOut_BF_Sub4
 
typedef PacketWriterDefs::PacketTemplateSub< Core::PKTBI_BF_ID, 3, Core::PKTBI_BF::TYPE_PARTY_SYSTEM, 0xFFFF > Pol::Network::PktOut_BF_Sub6
 
typedef PacketWriterDefs::PacketTemplateSub< Core::PKTBI_BF_ID, 3, Core::PKTBI_BF::TYPE_CURSOR_HUE, 5+1 > Pol::Network::PktOut_BF_Sub8
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_C1_ID, 48+(SPEECH_MAX_LEN+1)+2 > Pol::Network::PktOut_C1
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_C2_ID, 21 > Pol::Network::PktOut_C2
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_C7_ID, 49 > Pol::Network::PktOut_C7
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_CC_ID, 49+(SPEECH_MAX_LEN+1)*2+SPEECH_MAX_LEN+1 > Pol::Network::PktOut_CC
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTBI_D6_OUT_ID, 0xFFFF > Pol::Network::PktOut_D6
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_DC_ID, 9 > Pol::Network::PktOut_DC
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_DD_ID, 0xFFFF > Pol::Network::PktOut_DD
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_DF_ID, 0xFFFF > Pol::Network::PktOut_DF
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_E2_ID, 10 > Pol::Network::PktOut_E2
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_E3_ID, 77 > Pol::Network::PktOut_E3
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_F3_ID, 26 > Pol::Network::PktOut_F3
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_F5_ID, 21 > Pol::Network::PktOut_F5
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_F6_ID, 0xFFFF > Pol::Network::PktOut_F6
 
typedef PacketWriterDefs::PacketTemplate< Core::PKTOUT_F7_ID, 0xFFFF > Pol::Network::PktOut_F7
 

Detailed Description

History

Definition in file packets.h.

Macro Definition Documentation

#define ENCRYPTEDPKTBUFFER   static_cast<u8>( 0 )
#define MAX_PACKETS_INSTANCES   100