Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
PacketLog Class Reference

#include <PacketLog.h>

Public Member Functions

bool CanLogPacket () const
void CloseSession (void const *sessionKey)
void DisableAllLogging ()
void DisableCharacterLogging (std::string const &characterName)
void EnableCharacterLogging (std::string const &characterName)
void EnableGlobalLogging ()
size_t GetCharacterLoggingCount () const
void Initialize ()
bool IsGlobalLoggingEnabled () const
void LogMarker (void const *sessionKey, PacketLogSessionInfo const &sessionInfo, std::string const &marker)
void LogPacket (void const *sessionKey, PacketLogSessionInfo const &sessionInfo, WorldPacket const &packet, Direction direction)
void LogPacket (WorldPacket const &packet, Direction direction)
void RefreshSessionInfo (void const *sessionKey, PacketLogSessionInfo const &sessionInfo)

Private Member Functions

 PacketLog ()
 ~PacketLog ()

Friends

class Skyfire::Singleton< PacketLog, Skyfire::Mutex >

Detailed Description

Definition at line 23 of file PacketLog.h.

Constructor & Destructor Documentation

◆ PacketLog()

PacketLog::PacketLog ( )
private

Definition at line 18 of file PacketLog.cpp.

References Initialize().

◆ ~PacketLog()

PacketLog::~PacketLog ( )
private

Definition at line 23 of file PacketLog.cpp.

Member Function Documentation

◆ CanLogPacket()

bool PacketLog::CanLogPacket ( ) const

Definition at line 32 of file PacketLog.cpp.

References sPacketLogServer.

◆ CloseSession()

void PacketLog::CloseSession ( void const * sessionKey)

Definition at line 94 of file PacketLog.cpp.

References sPacketLogServer.

◆ DisableAllLogging()

void PacketLog::DisableAllLogging ( )

Definition at line 49 of file PacketLog.cpp.

References sPacketLogServer.

◆ DisableCharacterLogging()

void PacketLog::DisableCharacterLogging ( std::string const & characterName)

Definition at line 59 of file PacketLog.cpp.

References sPacketLogServer.

◆ EnableCharacterLogging()

void PacketLog::EnableCharacterLogging ( std::string const & characterName)

Definition at line 54 of file PacketLog.cpp.

References sPacketLogServer.

◆ EnableGlobalLogging()

void PacketLog::EnableGlobalLogging ( )

Definition at line 44 of file PacketLog.cpp.

References sPacketLogServer.

◆ GetCharacterLoggingCount()

size_t PacketLog::GetCharacterLoggingCount ( ) const

Definition at line 69 of file PacketLog.cpp.

References sPacketLogServer.

◆ Initialize()

void PacketLog::Initialize ( )

Definition at line 27 of file PacketLog.cpp.

References sPacketLogServer.

Referenced by PacketLog().

◆ IsGlobalLoggingEnabled()

bool PacketLog::IsGlobalLoggingEnabled ( ) const

Definition at line 64 of file PacketLog.cpp.

References sPacketLogServer.

◆ LogMarker()

void PacketLog::LogMarker ( void const * sessionKey,
PacketLogSessionInfo const & sessionInfo,
std::string const & marker )

Definition at line 84 of file PacketLog.cpp.

References sPacketLogServer.

◆ LogPacket() [1/2]

void PacketLog::LogPacket ( void const * sessionKey,
PacketLogSessionInfo const & sessionInfo,
WorldPacket const & packet,
Direction direction )

◆ LogPacket() [2/2]

void PacketLog::LogPacket ( WorldPacket const & packet,
Direction direction )

◆ RefreshSessionInfo()

void PacketLog::RefreshSessionInfo ( void const * sessionKey,
PacketLogSessionInfo const & sessionInfo )

Definition at line 89 of file PacketLog.cpp.

References sPacketLogServer.

◆ Skyfire::Singleton< PacketLog, Skyfire::Mutex >

friend class Skyfire::Singleton< PacketLog, Skyfire::Mutex >
friend

Definition at line 21 of file PacketLog.h.


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