AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ClientPktHeader Struct Reference

#include "WorldSocket.h"

Public Member Functions

bool IsValidSize () const
 
bool IsValidOpcode () const
 

Public Attributes

uint16 size
 
uint32 cmd
 

Detailed Description

Member Function Documentation

◆ IsValidOpcode()

bool ClientPktHeader::IsValidOpcode ( ) const
inline
65{ return cmd < NUM_OPCODE_HANDLERS; }
@ NUM_OPCODE_HANDLERS
Definition: Opcodes.h:1346
uint32 cmd
Definition: WorldSocket.h:62

References cmd, and NUM_OPCODE_HANDLERS.

Referenced by WorldSocket::ReadHeaderHandler().

◆ IsValidSize()

bool ClientPktHeader::IsValidSize ( ) const
inline
64{ return size >= 4 && size < 10240; }
uint16 size
Definition: WorldSocket.h:61

References size.

Referenced by WorldSocket::ReadHeaderHandler().

Member Data Documentation

◆ cmd

◆ size

uint16 ClientPktHeader::size