Pol  Revision:cb584c9
Pol::Network::PacketRegistry Class Reference

#include <msghandl.h>

Static Public Member Functions

static MSG_HANDLER find_handler (unsigned char msgid, const Client *client)
 
static PktHandlerFunc get_callback (unsigned char msgid, PacketVersion version=PacketVersion::V1)
 
static void handle_extended_cmd (Client *client, Core::PKTIN_12 *msg)
 
static void handle_msg (unsigned char msgid, Client *client, void *data)
 
static void initialize_msg_handlers ()
 
static bool is_defined (unsigned char msgid)
 
static int msglen (unsigned char msgid)
 
static int msglen_v2 (unsigned char msgid)
 
static void set_handler (unsigned char msgid, int len, PktHandlerFunc func, PacketVersion version=PacketVersion::V1)
 

Static Private Member Functions

static void initialize_extended_handlers ()
 
static void set_extended_handler (UEXTMSGID submsgtype, void(*func)(Client *client, Core::PKTIN_12 *msg))
 

Detailed Description

Definition at line 58 of file msghandl.h.

Member Function Documentation

MSG_HANDLER Pol::Network::PacketRegistry::find_handler ( unsigned char  msgid,
const Client client 
)
static
PktHandlerFunc Pol::Network::PacketRegistry::get_callback ( unsigned char  msgid,
PacketVersion  version = PacketVersion::V1 
)
static
void Pol::Network::PacketRegistry::handle_extended_cmd ( Client client,
Core::PKTIN_12 msg 
)
static
void Pol::Network::PacketRegistry::handle_msg ( unsigned char  msgid,
Client client,
void *  data 
)
static

Definition at line 20 of file msghandl.cpp.

References find_handler(), and Pol::Network::MSG_HANDLER::func.

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

void Pol::Network::PacketRegistry::initialize_msg_handlers ( )
static

Definition at line 125 of file msghandl.cpp.

References Pol::Module::buyhandler(), Pol::Core::char_select(), Pol::Core::ClientCreateChar(), Pol::Core::ClientCreateChar70160(), Pol::Core::ClientCreateCharKR(), Pol::Core::doubleclick(), Pol::Core::drop_item(), Pol::Core::drop_item_v2(), Pol::Core::equip_item(), Pol::Core::get_item(), Pol::Module::gumpbutton_handler(), Pol::Core::handle_A4(), Pol::Core::handle_allnames(), Pol::Core::handle_aos_commands(), Pol::Mobile::handle_attack(), Pol::Core::handle_bulletin_boards(), Pol::Core::handle_char_profile_request(), Pol::Core::handle_client_version(), Pol::Core::handle_D9(), Pol::Core::handle_delete_character(), Pol::Core::handle_e1_clienttype(), Pol::Core::handle_ef_seed(), handle_extended_cmd(), Pol::Core::handle_get_tip(), Pol::Core::handle_help(), Pol::Core::handle_keep_alive(), Pol::Core::handle_map_pin(), Pol::Core::handle_menu_selection(), Pol::Core::handle_mode_set(), Pol::Core::handle_msg_B5(), Pol::Core::handle_msg_BB(), Pol::Core::handle_msg_BF(), Pol::Core::handle_prompt(), Pol::Core::handle_rename_char(), Pol::Core::handle_request_tooltip(), Pol::Module::handle_resurrect_menu(), Pol::Core::handle_resync_request(), Pol::Core::handle_se_object_list(), Pol::Core::handle_secure_trade_msg(), Pol::Module::handle_selcolor(), Pol::Core::handle_singleclick(), Pol::Core::handle_skill_lock(), Pol::Core::handle_target_cursor(), Pol::Module::handle_textentry(), Pol::Core::handle_unicode_prompt(), Pol::Core::handle_unknown_C4(), Pol::Core::handle_update_range_change(), Pol::Core::handle_walk(), initialize_extended_handlers(), Pol::Core::KR_Verifier_Response(), Pol::Core::login2(), Pol::Core::loginserver_login(), MESSAGE_HANDLER, MESSAGE_HANDLER_V2, MESSAGE_HANDLER_VARLEN, Pol::Module::open_book_handler(), Pol::Module::read_book_page_handler(), Pol::Core::select_server(), Pol::Module::sellhandler(), Pol::Core::SpeechHandler(), Pol::Core::srequest(), and Pol::Core::UnicodeSpeechHandler().

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

bool Pol::Network::PacketRegistry::is_defined ( unsigned char  msgid)
static
int Pol::Network::PacketRegistry::msglen ( unsigned char  msgid)
static

Definition at line 43 of file msghandl.cpp.

References Pol::Core::NetworkManager::handler, and Pol::Core::networkManager.

Referenced by handle_extended_cmd().

int Pol::Network::PacketRegistry::msglen_v2 ( unsigned char  msgid)
static

Definition at line 48 of file msghandl.cpp.

References Pol::Core::NetworkManager::handler_v2, and Pol::Core::networkManager.

Referenced by find_handler().

void Pol::Network::PacketRegistry::set_extended_handler ( UEXTMSGID  submsgtype,
void(*)(Client *client, Core::PKTIN_12 *msg)  func 
)
staticprivate
void Pol::Network::PacketRegistry::set_handler ( unsigned char  msgid,
int  len,
PktHandlerFunc  func,
PacketVersion  version = PacketVersion::V1 
)
static

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