Pol  Revision:e50bd96
Pol::Network Namespace Reference

Namespaces

 PacketWriterDefs
 
 PktHelper
 

Classes

class  AddItemContainerMsg
 
class  AuxClientThread
 
class  AuxConnection
 
class  AuxService
 
class  Client
 
struct  ClientAttributeUpdaters
 
class  ClientGameData
 
class  ClientInterface
 
class  ClientTransmit
 
struct  ClientVitalUpdaters
 
struct  ExtMsgHandler
 
class  GraphicEffectExPkt
 
class  GraphicEffectPkt
 
class  HealthBarStatusUpdate
 
class  IOStats
 
struct  IPRule
 
class  MobileAnimationMsg
 
class  MoveChrPkt
 
struct  MSG_HANDLER
 
class  ObjRevisionPkt
 
class  PacketHookData
 
class  PacketInterface
 
class  PacketQueue
 
class  PacketRegistry
 
class  PacketsSingleton
 
struct  PacketThrottler
 
class  PktSender
 
class  PlaySoundPkt
 
struct  PolSocket
 
class  RemoveObjectPkt
 
class  SendDamagePkt
 
class  SendWorldItem
 
class  SendWorldMulti
 
struct  TransmitData
 
class  UOClientInterface
 
struct  VersionDetailStruct
 

Typedefs

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

Enumerations

enum  ClientTypeFlag {
  CLIENTTYPE_4000 = 0x1, CLIENTTYPE_4070 = 0x2, CLIENTTYPE_5000 = 0x4, CLIENTTYPE_5020 = 0x8,
  CLIENTTYPE_6017 = 0x10, CLIENTTYPE_60142 = 0x20, CLIENTTYPE_UOKR = 0x40, CLIENTTYPE_7000 = 0x80,
  CLIENTTYPE_UOSA = 0x100, CLIENTTYPE_7090 = 0x200, CLIENTTYPE_70130 = 0x400, CLIENTTYPE_70300 = 0x800,
  CLIENTTYPE_70331 = 0x1000
}
 
enum  PacketVersion { PacketVersion::V1 = 1, PacketVersion::V2 = 2, PacketVersion::Default = V1 }
 
enum  UEXTMSGID {
  EXTMSGID_SKILL = 0x24, EXTMSGID_CASTSPELL1 = 0x27, EXTMSGID_SPELLBOOK = 0x43, EXTMSGID_CASTSPELL2 = 0x56,
  EXTMSGID_OPENDOOR = 0x58, EXTMSGID_ACTION = 0xC7
}
 

Functions

const char * AddressToString (struct sockaddr *addr)
 
void apply_socket_options (SOCKET sck)
 
void aux_service_thread_stub (void *arg)
 
void CallOutgoingPacketExportedFunction (Client *client, const void *&data, int &inlength, ref_ptr< Core::BPacket > &outpacket, PacketHookData *phd, bool &handled)
 
void clean_packethooks ()
 
void ClientTransmitThread ()
 
bool CompareVersionDetail (VersionDetailStruct ver1, VersionDetailStruct ver2)
 
int deinit_sockets_library (void)
 
void disable_nagle (SOCKET sck)
 
void ExportedPacketHookHandler (Client *client, void *data)
 
PacketHookDataget_packethook (u8 msgid, PacketVersion version=PacketVersion::Default)
 
PacketHookDataget_packethook (u8 msgid, const Client *client)
 
bool GetAndCheckPacketHooked (Client *client, const void *&data, PacketHookData *&phd)
 
u32 GetSubCmd (const unsigned char *message, PacketHookData *phd)
 
int init_sockets_library (void)
 
void initialize_client_interfaces ()
 
bool is_banned_ip (Client *client)
 
static bool is_fixed_length (const PacketHookData *phd)
 
void load_aux_services ()
 
void load_auxservice_entry (const Plib::Package *pkg, Clib::ConfigElem &elem)
 
void load_packet_entries (const Plib::Package *pkg, Clib::ConfigElem &elem)
 
void load_packet_hooks ()
 
static int load_packethook_length (Clib::ConfigElem &elem)
 
static PacketVersion load_packethook_version (Clib::ConfigElem &elem)
 
void load_subpacket_entries (const Plib::Package *pkg, Clib::ConfigElem &elem)
 
SOCKET open_listen_socket (unsigned short port)
 
static void packethook_assert_valid_parent (u8 id, const PacketHookData *parent, const Clib::ConfigElem &elem)
 
static void packethook_warn_if_previously_defined (u8 msgid, PacketVersion pktversion)
 
void read_bannedips_config (bool initial_load)
 
void search_name (const char *hostname)
 
void send_fake_hits (Client *client, Mobile::Character *me, const Core::Vital *vital)
 Just like send_uo_hits, but sends hits on a 1000-basis instead. More...
 
void send_uo_dexterity (Client *client, Mobile::Character *me, const Mobile::Attribute *)
 
void send_uo_hits (Client *client, Mobile::Character *me, const Core::Vital *vital)
 
void send_uo_intelligence (Client *client, Mobile::Character *me, const Mobile::Attribute *)
 
void send_uo_mana (Client *client, Mobile::Character *me, const Core::Vital *vital)
 
void send_uo_skill (Client *client, Mobile::Character *me, const Mobile::Attribute *attr)
 
void send_uo_stamina (Client *client, Mobile::Character *me, const Core::Vital *vital)
 
void send_uo_strength (Client *client, Mobile::Character *me, const Mobile::Attribute *)
 
void set_ip_address (const char *ip)
 
void set_lan_address (const char *ip)
 
void SetVersionDetailStruct (const std::string &ver, VersionDetailStruct &detail)
 
void start_aux_services ()
 
void transmit (Client *client, const void *data, int len)
 

Variables

const u16 AOS = 0x04
 
const struct VersionDetailStruct CLIENT_VER_4000 = {4, 0, 0, 0}
 
const struct VersionDetailStruct CLIENT_VER_4070 = {4, 0, 7, 0}
 
const struct VersionDetailStruct CLIENT_VER_5000 = {5, 0, 0, 0}
 
const struct VersionDetailStruct CLIENT_VER_5020 = {5, 0, 2, 0}
 
const struct VersionDetailStruct CLIENT_VER_60142 = {6, 0, 14, 2}
 
const struct VersionDetailStruct CLIENT_VER_6017 = {6, 0, 1, 7}
 
const struct VersionDetailStruct CLIENT_VER_7000 = {7, 0, 0, 0}
 
const struct VersionDetailStruct CLIENT_VER_70130 = {7, 0, 13, 0}
 
const struct VersionDetailStruct CLIENT_VER_70300 = {7, 0, 30, 0}
 
const struct VersionDetailStruct CLIENT_VER_70331 = {7, 0, 33, 1}
 
const struct VersionDetailStruct CLIENT_VER_7090 = {7, 0, 9, 0}
 
const u8 FLAG_GENDER = 0x01
 
const u8 FLAG_RACE = 0x02
 
const u16 HSA = 0x80
 
const u16 KR = 0x20
 
const u16 LBR = 0x02
 
const u16 ML = 0x10
 
static const unsigned char pause_pre_encrypted [2] = {0x4F, 0xFA}
 
static const unsigned char restart_pre_encrypted [2] = {0x4C, 0xD0}
 
const u16 SA = 0x40
 
const u16 SE = 0x08
 
const u16 T2A = 0x01
 
const u16 TOL = 0x100
 

Typedef Documentation

typedef PacketWriterDefs::EmptyBufferTemplate<ENCRYPTEDPKTBUFFER, 0xFFFF> Pol::Network::EncryptedPktBuffer

Definition at line 357 of file packets.h.

Definition at line 28 of file packetinterface.h.

Definition at line 29 of file packetinterface.h.

Definition at line 30 of file packetinterface.h.

Definition at line 57 of file packetinterface.h.

Definition at line 56 of file packetinterface.h.

typedef void( * Pol::Network::PktHandlerFunc) (Client *client, void *msg)

Definition at line 28 of file msghandl.h.

Definition at line 378 of file packets.h.

typedef PacketWriterDefs::PacketTemplate<Core::PKTBI_66_ID, 0xFFFF> Pol::Network::PktOut_66

Definition at line 388 of file packets.h.

typedef PacketWriterDefs::PacketTemplate<Core::PKTOUT_74_ID, 0xFFFF> Pol::Network::PktOut_74

Definition at line 395 of file packets.h.

Definition at line 404 of file packets.h.

typedef PacketWriterDefs::PacketTemplate<Core::PKTOUT_9E_ID, 0xFFFF> Pol::Network::PktOut_9E

Definition at line 413 of file packets.h.

typedef PacketWriterDefs::PacketTemplate<Core::PKTOUT_B0_ID, 0xFFFF> Pol::Network::PktOut_B0

Definition at line 426 of file packets.h.

Definition at line 444 of file packets.h.

Definition at line 438 of file packets.h.

typedef PacketWriterDefs::PacketTemplate<Core::PKTBI_D6_OUT_ID, 0xFFFF> Pol::Network::PktOut_D6

Definition at line 469 of file packets.h.

typedef PacketWriterDefs::PacketTemplate<Core::PKTOUT_DD_ID, 0xFFFF> Pol::Network::PktOut_DD

Definition at line 471 of file packets.h.

typedef PacketWriterDefs::PacketTemplate<Core::PKTOUT_DF_ID, 0xFFFF> Pol::Network::PktOut_DF

Definition at line 472 of file packets.h.

typedef PacketWriterDefs::PacketTemplate<Core::PKTOUT_F6_ID, 0xFFFF> Pol::Network::PktOut_F6

Definition at line 478 of file packets.h.

typedef PacketWriterDefs::PacketTemplate<Core::PKTOUT_F7_ID, 0xFFFF> Pol::Network::PktOut_F7

Definition at line 479 of file packets.h.

typedef std::unique_ptr<TransmitData> Pol::Network::TransmitDataSPtr

Definition at line 32 of file clienttransmit.h.

Enumeration Type Documentation

Enumerator
CLIENTTYPE_4000 
CLIENTTYPE_4070 
CLIENTTYPE_5000 
CLIENTTYPE_5020 
CLIENTTYPE_6017 
CLIENTTYPE_60142 
CLIENTTYPE_UOKR 
CLIENTTYPE_7000 
CLIENTTYPE_UOSA 
CLIENTTYPE_7090 
CLIENTTYPE_70130 
CLIENTTYPE_70300 
CLIENTTYPE_70331 

Definition at line 106 of file client.h.

Enumerator
V1 
V2 
Default 

Definition at line 21 of file msghandl.h.

Enumerator
EXTMSGID_SKILL 
EXTMSGID_CASTSPELL1 
EXTMSGID_SPELLBOOK 
EXTMSGID_CASTSPELL2 
EXTMSGID_OPENDOOR 
EXTMSGID_ACTION 

Definition at line 37 of file msghandl.h.

Function Documentation

void Pol::Network::apply_socket_options ( SOCKET  sck)

Definition at line 138 of file sockio.cpp.

References Pol::Clib::decint().

Referenced by Pol::Core::check_incoming_data(), Pol::Core::http_thread(), and open_listen_socket().

+ Here is the call graph for this function:

void Pol::Network::aux_service_thread_stub ( void *  arg)

Definition at line 309 of file auxclient.cpp.

References Pol::Network::AuxService::run().

Referenced by start_aux_services().

+ Here is the call graph for this function:

void Pol::Network::CallOutgoingPacketExportedFunction ( Client client,
const void *&  data,
int &  inlength,
ref_ptr< Core::BPacket > &  outpacket,
PacketHookData phd,
bool &  handled 
)
void Pol::Network::ClientTransmitThread ( )
int Pol::Network::deinit_sockets_library ( void  )

Definition at line 111 of file sockio.cpp.

References POLLOG_ERROR.

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

void Pol::Network::disable_nagle ( SOCKET  sck)

Definition at line 126 of file sockio.cpp.

References Pol::Clib::decint().

Referenced by Pol::Core::check_incoming_data(), and open_listen_socket().

+ Here is the call graph for this function:

PacketHookData* Pol::Network::get_packethook ( u8  msgid,
const Client client 
)
bool Pol::Network::GetAndCheckPacketHooked ( Client client,
const void *&  data,
PacketHookData *&  phd 
)

Definition at line 225 of file packethooks.cpp.

References data, get_packethook(), GetSubCmd(), Pol::Network::PacketHookData::outgoing_function, and Pol::Network::PacketHookData::SubCommands.

Referenced by Pol::Network::Client::transmit().

+ Here is the call graph for this function:

u32 Pol::Network::GetSubCmd ( const unsigned char *  message,
PacketHookData phd 
)
int Pol::Network::init_sockets_library ( void  )

Definition at line 83 of file sockio.cpp.

References Pol::Core::networkManager, POLLOG_ERROR, search_name(), and socket_errno.

Referenced by Pol::xmain_inner().

+ Here is the call graph for this function:

void Pol::Network::initialize_client_interfaces ( )
bool Pol::Network::is_banned_ip ( Client client)
static bool Pol::Network::is_fixed_length ( const PacketHookData phd)
static
void Pol::Network::load_aux_services ( )

Definition at line 329 of file auxclient.cpp.

References load_auxservice_entry(), and Pol::Plib::load_packaged_cfgs().

Referenced by Pol::xmain_inner().

+ Here is the call graph for this function:

void Pol::Network::load_auxservice_entry ( const Plib::Package pkg,
Clib::ConfigElem elem 
)

Definition at line 324 of file auxclient.cpp.

References Pol::Network::AuxService::AuxService(), Pol::Core::NetworkManager::auxservices, and Pol::Core::networkManager.

Referenced by load_aux_services().

+ Here is the call graph for this function:

void Pol::Network::load_packet_hooks ( )

Definition at line 445 of file packethooks.cpp.

References Pol::Plib::load_packaged_cfgs(), load_packet_entries(), and load_subpacket_entries().

Referenced by Pol::xmain_inner().

+ Here is the call graph for this function:

static int Pol::Network::load_packethook_length ( Clib::ConfigElem elem)
static

Definition at line 272 of file packethooks.cpp.

References MSGLEN_2BYTELEN_DATA, Pol::Clib::ConfigElem::remove_prop(), and Pol::Clib::ConfigElem::throw_error().

Referenced by load_packet_entries().

+ Here is the call graph for this function:

static PacketVersion Pol::Network::load_packethook_version ( Clib::ConfigElem elem)
static

Definition at line 254 of file packethooks.cpp.

References Pol::Clib::ConfigElem::remove_prop(), Pol::Clib::ConfigElem::throw_error(), V1, and V2.

Referenced by load_packet_entries(), and load_subpacket_entries().

+ Here is the call graph for this function:

SOCKET Pol::Network::open_listen_socket ( unsigned short  port)

Definition at line 154 of file sockio.cpp.

References apply_socket_options(), ctBEu16, Pol::Clib::decint(), disable_nagle(), and INVALID_SOCKET.

Referenced by Pol::Core::http_thread(), and Pol::xmain_inner().

+ Here is the call graph for this function:

static void Pol::Network::packethook_assert_valid_parent ( u8  id,
const PacketHookData parent,
const Clib::ConfigElem elem 
)
static
static void Pol::Network::packethook_warn_if_previously_defined ( u8  msgid,
PacketVersion  pktversion 
)
static

Definition at line 298 of file packethooks.cpp.

References Pol::Network::PacketHookData::function, get_packethook(), Pol::Network::PacketHookData::outgoing_function, and POLLOG.

Referenced by load_packet_entries().

+ Here is the call graph for this function:

void Pol::Network::read_bannedips_config ( bool  initial_load)
void Pol::Network::search_name ( const char *  hostname)

Definition at line 39 of file sockio.cpp.

References Pol::Core::networkManager, POLLOG_INFO, set_ip_address(), and set_lan_address().

Referenced by init_sockets_library().

+ Here is the call graph for this function:

void Pol::Network::send_fake_hits ( Client client,
Mobile::Character me,
const Core::Vital vital 
)

Just like send_uo_hits, but sends hits on a 1000-basis instead.

Definition at line 91 of file cliface.cpp.

References Pol::Mobile::VitalValue::current_thousands(), Pol::Network::PktHelper::PacketOut< T >::Send(), Pol::Core::UObject::serial_ext, Pol::Mobile::Character::vital(), and Pol::Core::Vital::vitalid.

Referenced by Pol::Network::UOClientInterface::Initialize().

+ Here is the call graph for this function:

void Pol::Network::send_uo_dexterity ( Client client,
Mobile::Character me,
const Mobile::Attribute  
)

Definition at line 157 of file cliface.cpp.

References Pol::Core::send_full_statmsg().

Referenced by Pol::Network::UOClientInterface::Initialize().

+ Here is the call graph for this function:

void Pol::Network::send_uo_intelligence ( Client client,
Mobile::Character me,
const Mobile::Attribute  
)

Definition at line 161 of file cliface.cpp.

References Pol::Core::send_full_statmsg().

Referenced by Pol::Network::UOClientInterface::Initialize().

+ Here is the call graph for this function:

void Pol::Network::send_uo_strength ( Client client,
Mobile::Character me,
const Mobile::Attribute  
)

Definition at line 153 of file cliface.cpp.

References Pol::Core::send_full_statmsg().

Referenced by Pol::Network::UOClientInterface::Initialize().

+ Here is the call graph for this function:

void Pol::Network::set_ip_address ( const char *  ip)

Definition at line 28 of file sockio.cpp.

References Pol::Core::NetworkManager::ipaddr_str, Pol::Core::networkManager, POLLOG_INFO, and strzcpy.

Referenced by search_name().

void Pol::Network::set_lan_address ( const char *  ip)
void Pol::Network::start_aux_services ( )

Definition at line 315 of file auxclient.cpp.

References aux_service_thread_stub(), Pol::Core::NetworkManager::auxservices, Pol::Core::networkManager, and Pol::threadhelp::start_thread().

Referenced by Pol::xmain_inner().

+ Here is the call graph for this function:

void Pol::Network::transmit ( Client client,
const void *  data,
int  len 
)

Variable Documentation

const struct VersionDetailStruct Pol::Network::CLIENT_VER_4000 = {4, 0, 0, 0}

Definition at line 94 of file client.h.

Referenced by Pol::Core::handle_client_version(), and Pol::Core::handle_ef_seed().

const struct VersionDetailStruct Pol::Network::CLIENT_VER_4070 = {4, 0, 7, 0}

Definition at line 95 of file client.h.

Referenced by Pol::Core::handle_client_version(), and Pol::Core::handle_ef_seed().

const struct VersionDetailStruct Pol::Network::CLIENT_VER_5000 = {5, 0, 0, 0}
const struct VersionDetailStruct Pol::Network::CLIENT_VER_5020 = {5, 0, 2, 0}

Definition at line 97 of file client.h.

Referenced by Pol::Core::handle_client_version(), and Pol::Core::handle_ef_seed().

const struct VersionDetailStruct Pol::Network::CLIENT_VER_60142 = {6, 0, 14, 2}

Definition at line 99 of file client.h.

Referenced by Pol::Core::handle_client_version(), and Pol::Core::handle_ef_seed().

const struct VersionDetailStruct Pol::Network::CLIENT_VER_6017 = {6, 0, 1, 7}

Definition at line 98 of file client.h.

Referenced by Pol::Core::handle_client_version(), and Pol::Core::handle_ef_seed().

const struct VersionDetailStruct Pol::Network::CLIENT_VER_7000 = {7, 0, 0, 0}

Definition at line 100 of file client.h.

Referenced by Pol::Core::handle_client_version(), and Pol::Core::handle_ef_seed().

const struct VersionDetailStruct Pol::Network::CLIENT_VER_70130 = {7, 0, 13, 0}

Definition at line 102 of file client.h.

Referenced by Pol::Core::handle_client_version(), and Pol::Core::handle_ef_seed().

const struct VersionDetailStruct Pol::Network::CLIENT_VER_70300 = {7, 0, 30, 0}

Definition at line 103 of file client.h.

Referenced by Pol::Core::handle_client_version(), and Pol::Core::handle_ef_seed().

const struct VersionDetailStruct Pol::Network::CLIENT_VER_70331 = {7, 0, 33, 1}

Definition at line 104 of file client.h.

Referenced by Pol::Core::handle_client_version(), and Pol::Core::handle_ef_seed().

const struct VersionDetailStruct Pol::Network::CLIENT_VER_7090 = {7, 0, 9, 0}

Definition at line 101 of file client.h.

Referenced by Pol::Core::handle_client_version(), and Pol::Core::handle_ef_seed().

const u8 Pol::Network::FLAG_GENDER = 0x01

Definition at line 83 of file client.h.

Referenced by Pol::Core::ClientCreateChar(), and Pol::Core::ClientCreateChar70160().

const u8 Pol::Network::FLAG_RACE = 0x02

Definition at line 84 of file client.h.

Referenced by Pol::Core::ClientCreateChar(), and Pol::Core::ClientCreateChar70160().

const u16 Pol::Network::HSA = 0x80
const u16 Pol::Network::KR = 0x20
const u16 Pol::Network::LBR = 0x02
const unsigned char Pol::Network::pause_pre_encrypted[2] = {0x4F, 0xFA}
static

Definition at line 600 of file client.cpp.

const unsigned char Pol::Network::restart_pre_encrypted[2] = {0x4C, 0xD0}
static

Definition at line 602 of file client.cpp.

const u16 Pol::Network::T2A = 0x01
const u16 Pol::Network::TOL = 0x100