Pol  Revision:cb584c9
Pol::Network::PacketHookData Class Reference

#include <packethooks.h>

Public Member Functions

 PacketHookData ()
 
 ~PacketHookData ()
 
size_t estimateSize () const
 

Static Public Member Functions

static void initializeGameData (std::vector< std::unique_ptr< PacketHookData >> *data)
 

Public Attributes

VersionDetailStruct client_ver
 
PktHandlerFunc default_handler
 
Core::ExportedFunctionfunction
 
int length
 
Core::ExportedFunctionoutgoing_function
 
unsigned short sub_command_length
 
unsigned short sub_command_offset
 
std::map< u32, PacketHookData * > SubCommands
 
PacketVersion version
 

Detailed Description

Definition at line 35 of file packethooks.h.

Constructor & Destructor Documentation

Pol::Network::PacketHookData::PacketHookData ( )

Definition at line 444 of file packethooks.cpp.

References client_ver, and Pol::Network::Default.

Referenced by estimateSize(), and initializeGameData().

Pol::Network::PacketHookData::~PacketHookData ( )

Definition at line 456 of file packethooks.cpp.

References outgoing_function, and SubCommands.

Member Function Documentation

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

Definition at line 479 of file packethooks.cpp.

References PacketHookData(), and SubCommands.

void Pol::Network::PacketHookData::initializeGameData ( std::vector< std::unique_ptr< PacketHookData >> *  data)
static

Definition at line 469 of file packethooks.cpp.

References data, and PacketHookData().

Referenced by Pol::Core::NetworkManager::NetworkManager().

Member Data Documentation

PktHandlerFunc Pol::Network::PacketHookData::default_handler
unsigned short Pol::Network::PacketHookData::sub_command_length
unsigned short Pol::Network::PacketHookData::sub_command_offset
PacketVersion Pol::Network::PacketHookData::version

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