Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
WorldSession::DosProtection Class Reference

#include <WorldSession.h>

Collaboration diagram for WorldSession::DosProtection:

Public Member Functions

void AllowOpcode (uint16 opcode, bool allow)
 DosProtection (WorldSession *s)
bool EvaluateOpcode (WorldPacket &p) const

Protected Types

enum  Policy { POLICY_LOG , POLICY_KICK , POLICY_BAN }

Protected Member Functions

bool IsOpcodeAllowed (uint16 opcode) const

Protected Attributes

WorldSessionSession

Private Types

typedef UNORDERED_MAP< uint16, bool > OpcodeStatusMap

Private Member Functions

 DosProtection (DosProtection const &right)=delete
DosProtectionoperator= (DosProtection const &right)=delete

Private Attributes

OpcodeStatusMap _isOpcodeAllowed
Policy _policy

Friends

class World

Detailed Description

Definition at line 1134 of file WorldSession.h.

Member Typedef Documentation

◆ OpcodeStatusMap

Definition at line 1161 of file WorldSession.h.

Member Enumeration Documentation

◆ Policy

Enumerator
POLICY_LOG 
POLICY_KICK 
POLICY_BAN 

Definition at line 1142 of file WorldSession.h.

Constructor & Destructor Documentation

◆ DosProtection() [1/2]

WorldSession::DosProtection::DosProtection ( WorldSession * s)
inline

Definition at line 1138 of file WorldSession.h.

References _policy, Session, sWorld, and WorldSession::WorldSession().

Referenced by DosProtection(), and operator=().

◆ DosProtection() [2/2]

WorldSession::DosProtection::DosProtection ( DosProtection const & right)
privatedelete

References DosProtection().

Member Function Documentation

◆ AllowOpcode()

void WorldSession::DosProtection::AllowOpcode ( uint16 opcode,
bool allow )
inline

Definition at line 1140 of file WorldSession.h.

References _isOpcodeAllowed.

◆ EvaluateOpcode()

◆ IsOpcodeAllowed()

bool WorldSession::DosProtection::IsOpcodeAllowed ( uint16 opcode) const
inlineprotected

Definition at line 1149 of file WorldSession.h.

References _isOpcodeAllowed.

Referenced by EvaluateOpcode().

◆ operator=()

DosProtection & WorldSession::DosProtection::operator= ( DosProtection const & right)
privatedelete

References DosProtection().

◆ World

friend class World
friend

Definition at line 1136 of file WorldSession.h.

References World.

Referenced by World.

Member Data Documentation

◆ _isOpcodeAllowed

OpcodeStatusMap WorldSession::DosProtection::_isOpcodeAllowed
private

Definition at line 1162 of file WorldSession.h.

Referenced by AllowOpcode(), and IsOpcodeAllowed().

◆ _policy

Policy WorldSession::DosProtection::_policy
private

Definition at line 1163 of file WorldSession.h.

Referenced by DosProtection(), and EvaluateOpcode().

◆ Session

WorldSession* WorldSession::DosProtection::Session
protected

Definition at line 1158 of file WorldSession.h.

Referenced by DosProtection(), and EvaluateOpcode().


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