TrinityCore
PacketLog Class Reference

#include <PacketLog.h>

Public Member Functions

void Initialize ()
 
bool CanLogPacket () const
 
void LogPacket (WorldPacket const &packet, Direction direction, boost::asio::ip::address const &addr, uint16 port, ConnectionType connectionType)
 

Static Public Member Functions

static PacketLoginstance ()
 

Private Member Functions

 PacketLog ()
 
 ~PacketLog ()
 

Private Attributes

std::mutex _logPacketLock
 
std::once_flag _initializeFlag
 
FILE * _file
 

Detailed Description

Definition at line 44 of file PacketLog.h.

Constructor & Destructor Documentation

◆ PacketLog()

PacketLog::PacketLog ( )
private

Definition at line 63 of file PacketLog.cpp.

+ Here is the call graph for this function:

◆ ~PacketLog()

PacketLog::~PacketLog ( )
private

Definition at line 68 of file PacketLog.cpp.

Member Function Documentation

◆ CanLogPacket()

bool PacketLog::CanLogPacket ( ) const
inline

Definition at line 56 of file PacketLog.h.

+ Here is the caller graph for this function:

◆ Initialize()

void PacketLog::Initialize ( )

Definition at line 82 of file PacketLog.cpp.

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

◆ instance()

PacketLog * PacketLog::instance ( )
static

Definition at line 76 of file PacketLog.cpp.

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

◆ LogPacket()

void PacketLog::LogPacket ( WorldPacket const &  packet,
Direction  direction,
boost::asio::ip::address const &  addr,
uint16  port,
ConnectionType  connectionType 
)

Definition at line 113 of file PacketLog.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _file

FILE* PacketLog::_file
private

Definition at line 60 of file PacketLog.h.

◆ _initializeFlag

std::once_flag PacketLog::_initializeFlag
private

Definition at line 50 of file PacketLog.h.

◆ _logPacketLock

std::mutex PacketLog::_logPacketLock
private

Definition at line 49 of file PacketLog.h.


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