Pol
Revision:cb584c9
|
#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)) |
Definition at line 58 of file msghandl.h.
|
static |
Definition at line 26 of file msghandl.cpp.
References Pol::Core::NetworkManager::handler, Pol::Network::Client::might_use_v2_handler(), msglen_v2(), and Pol::Core::networkManager.
Referenced by Pol::Core::client_io_thread(), handle_msg(), and Pol::Core::process_data().
|
static |
Definition at line 34 of file msghandl.cpp.
References Pol::Core::NetworkManager::handler, Pol::Core::NetworkManager::handler_v2, Pol::Core::networkManager, and Pol::Network::V1.
Referenced by Pol::Network::load_packet_entries().
|
static |
Definition at line 76 of file msghandl.cpp.
References cfBEu16, Pol::Core::PKTIN_12::data, data, Pol::Core::NetworkManager::ext_handler_table, msglen(), Pol::Core::PKTIN_12::msglen, Pol::Core::networkManager, and Pol::Core::PKTIN_12::submsgtype.
Referenced by initialize_msg_handlers().
|
static |
Definition at line 20 of file msghandl.cpp.
References find_handler(), and Pol::Network::MSG_HANDLER::func.
Referenced by Pol::Core::process_data().
|
staticprivate |
Definition at line 190 of file msghandl.cpp.
References Pol::Network::EXTMSGID_ACTION, Pol::Network::EXTMSGID_CASTSPELL1, Pol::Network::EXTMSGID_CASTSPELL2, Pol::Network::EXTMSGID_SKILL, Pol::Network::EXTMSGID_SPELLBOOK, Pol::Core::handle_action(), Pol::Core::handle_cast_spell(), Pol::Core::handle_open_spellbook(), Pol::Core::handle_use_skill(), and set_extended_handler().
Referenced by 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().
|
static |
Definition at line 70 of file msghandl.cpp.
References Pol::Core::NetworkManager::handler, Pol::Core::NetworkManager::handler_v2, and Pol::Core::networkManager.
Referenced by Pol::Core::process_data().
|
static |
Definition at line 43 of file msghandl.cpp.
References Pol::Core::NetworkManager::handler, and Pol::Core::networkManager.
Referenced by handle_extended_cmd().
|
static |
Definition at line 48 of file msghandl.cpp.
References Pol::Core::NetworkManager::handler_v2, and Pol::Core::networkManager.
Referenced by find_handler().
|
staticprivate |
Definition at line 90 of file msghandl.cpp.
References ERROR_PRINT, Pol::Core::NetworkManager::ext_handler_table, and Pol::Core::networkManager.
Referenced by initialize_extended_handlers().
|
static |
Definition at line 53 of file msghandl.cpp.
References Pol::Core::NetworkManager::handler, Pol::Core::NetworkManager::handler_v2, Pol::Core::networkManager, passert, and Pol::Network::V1.
Referenced by Pol::Network::load_packet_entries().