TrinityCore
Loading...
Searching...
No Matches
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 (uint32 opcode) const
 

Protected Attributes

WorldSessionSession
 

Private Types

typedef std::unordered_map< uint32, 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 1936 of file WorldSession.h.

Member Typedef Documentation

◆ PacketThrottlingMap

Definition at line 1956 of file WorldSession.h.

Member Enumeration Documentation

◆ Policy

Enumerator
POLICY_LOG 
POLICY_KICK 
POLICY_BAN 

Definition at line 1943 of file WorldSession.h.

Constructor & Destructor Documentation

◆ DosProtection() [1/2]

WorldSession::DosProtection::DosProtection ( WorldSession s)

Definition at line 1741 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 1439 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 ( uint32  opcode) const
protected

Definition at line 1493 of file WorldSession.cpp.

+ Here is the caller graph for this function:

◆ operator=()

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

Friends And Related Symbol Documentation

◆ World

friend class World
friend

Definition at line 1938 of file WorldSession.h.

Member Data Documentation

◆ _PacketThrottlingMap

PacketThrottlingMap WorldSession::DosProtection::_PacketThrottlingMap
mutableprivate

Definition at line 1958 of file WorldSession.h.

◆ _policy

Policy WorldSession::DosProtection::_policy
private

Definition at line 1955 of file WorldSession.h.

◆ Session

WorldSession* WorldSession::DosProtection::Session
protected

Definition at line 1952 of file WorldSession.h.


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