TrinityCore
WorldSession::DosProtection Class Reference

#include <WorldSession.h>

Public Member Functions

 DosProtection (WorldSession *s)
 
bool EvaluateOpcode (WorldPacket &p, time_t time) const
 

Protected Types

enum  Policy { POLICY_LOG , POLICY_KICK , POLICY_BAN }
 

Protected Member Functions

uint32 GetMaxPacketCounterAllowed (uint16 opcode) const
 

Protected Attributes

WorldSessionSession
 

Private Types

typedef std::unordered_map< uint16, PacketCounterPacketThrottlingMap
 

Private Member Functions

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

Private Attributes

Policy _policy
 
PacketThrottlingMap _PacketThrottlingMap
 

Friends

class World
 

Detailed Description

Definition at line 1872 of file WorldSession.h.

Member Typedef Documentation

◆ PacketThrottlingMap

Definition at line 1892 of file WorldSession.h.

Member Enumeration Documentation

◆ Policy

Enumerator
POLICY_LOG 
POLICY_KICK 
POLICY_BAN 

Definition at line 1879 of file WorldSession.h.

Constructor & Destructor Documentation

◆ DosProtection() [1/2]

WorldSession::DosProtection::DosProtection ( WorldSession s)

Definition at line 1543 of file WorldSession.cpp.

◆ DosProtection() [2/2]

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

Member Function Documentation

◆ EvaluateOpcode()

bool WorldSession::DosProtection::EvaluateOpcode ( WorldPacket p,
time_t  time 
) const

Definition at line 1251 of file WorldSession.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMaxPacketCounterAllowed()

uint32 WorldSession::DosProtection::GetMaxPacketCounterAllowed ( uint16  opcode) const
protected

Definition at line 1305 of file WorldSession.cpp.

+ Here is the caller graph for this function:

◆ operator=()

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

Friends And Related Function Documentation

◆ World

friend class World
friend

Definition at line 1874 of file WorldSession.h.

Member Data Documentation

◆ _PacketThrottlingMap

PacketThrottlingMap WorldSession::DosProtection::_PacketThrottlingMap
mutableprivate

Definition at line 1894 of file WorldSession.h.

◆ _policy

Policy WorldSession::DosProtection::_policy
private

Definition at line 1891 of file WorldSession.h.

◆ Session

WorldSession* WorldSession::DosProtection::Session
protected

Definition at line 1888 of file WorldSession.h.


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