|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <WorldSession.h>
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 | |
| WorldSession * | Session |
Private Types | |
| typedef UNORDERED_MAP< uint16, bool > | OpcodeStatusMap |
Private Member Functions | |
| DosProtection (DosProtection const &right)=delete | |
| DosProtection & | operator= (DosProtection const &right)=delete |
Private Attributes | |
| OpcodeStatusMap | _isOpcodeAllowed |
| Policy | _policy |
Friends | |
| class | World |
Definition at line 1134 of file WorldSession.h.
|
private |
Definition at line 1161 of file WorldSession.h.
|
protected |
| Enumerator | |
|---|---|
| POLICY_LOG | |
| POLICY_KICK | |
| POLICY_BAN | |
Definition at line 1142 of file WorldSession.h.
|
inline |
Definition at line 1138 of file WorldSession.h.
References _policy, Session, sWorld, and WorldSession::WorldSession().
Referenced by DosProtection(), and operator=().
|
privatedelete |
References DosProtection().
|
inline |
Definition at line 1140 of file WorldSession.h.
References _isOpcodeAllowed.
| bool WorldSession::DosProtection::EvaluateOpcode | ( | WorldPacket & | p | ) | const |
Definition at line 1264 of file WorldSession.cpp.
References _policy, BAN_ACCOUNT, BAN_CHARACTER, BAN_IP, CONFIG_PACKET_SPOOF_BANDURATION, CONFIG_PACKET_SPOOF_BANMODE, WorldPacket::GetOpcode(), IsOpcodeAllowed(), POLICY_BAN, POLICY_KICK, POLICY_LOG, sAccountMgr, Session, SF_LOG_INFO, ByteBuffer::size(), and sWorld.
|
inlineprotected |
Definition at line 1149 of file WorldSession.h.
References _isOpcodeAllowed.
Referenced by EvaluateOpcode().
|
privatedelete |
References DosProtection().
|
friend |
|
private |
Definition at line 1162 of file WorldSession.h.
Referenced by AllowOpcode(), and IsOpcodeAllowed().
|
private |
Definition at line 1163 of file WorldSession.h.
Referenced by DosProtection(), and EvaluateOpcode().
|
protected |
Definition at line 1158 of file WorldSession.h.
Referenced by DosProtection(), and EvaluateOpcode().