TrinityCore
Battlenet::WorldserverServiceDispatcher Class Reference

#include <WorldserverServiceDispatcher.h>

Public Member Functions

void Dispatch (WorldSession *session, uint32 serviceHash, uint32 token, uint32 methodId, MessageBuffer buffer)
 

Static Public Member Functions

static WorldserverServiceDispatcherInstance ()
 

Private Types

typedef void(* ServiceMethod) (WorldSession *, uint32, uint32, MessageBuffer)
 

Private Member Functions

 WorldserverServiceDispatcher ()
 
template<class Service >
void AddService ()
 

Static Private Member Functions

template<class Service >
static void Dispatch (WorldSession *session, uint32 token, uint32 methodId, MessageBuffer buffer)
 

Private Attributes

std::unordered_map< uint32, ServiceMethod_dispatchers
 

Detailed Description

Definition at line 43 of file WorldserverServiceDispatcher.h.

Member Typedef Documentation

◆ ServiceMethod

typedef void(* Battlenet::WorldserverServiceDispatcher::ServiceMethod) (WorldSession *, uint32, uint32, MessageBuffer)
private

Definition at line 65 of file WorldserverServiceDispatcher.h.

Constructor & Destructor Documentation

◆ WorldserverServiceDispatcher()

Battlenet::WorldserverServiceDispatcher::WorldserverServiceDispatcher ( )
private

Definition at line 20 of file WorldserverServiceDispatcher.cpp.

Member Function Documentation

◆ AddService()

template<class Service >
void Battlenet::WorldserverServiceDispatcher::AddService ( )
inlineprivate

Definition at line 54 of file WorldserverServiceDispatcher.h.

◆ Dispatch() [1/2]

void Battlenet::WorldserverServiceDispatcher::Dispatch ( WorldSession session,
uint32  serviceHash,
uint32  token,
uint32  methodId,
MessageBuffer  buffer 
)

Definition at line 36 of file WorldserverServiceDispatcher.cpp.

+ Here is the call graph for this function:

◆ Dispatch() [2/2]

template<class Service >
static void Battlenet::WorldserverServiceDispatcher::Dispatch ( WorldSession session,
uint32  token,
uint32  methodId,
MessageBuffer  buffer 
)
inlinestaticprivate

Definition at line 60 of file WorldserverServiceDispatcher.h.

◆ Instance()

Battlenet::WorldserverServiceDispatcher & Battlenet::WorldserverServiceDispatcher::Instance ( )
static

Definition at line 45 of file WorldserverServiceDispatcher.cpp.

Member Data Documentation

◆ _dispatchers

std::unordered_map<uint32, ServiceMethod> Battlenet::WorldserverServiceDispatcher::_dispatchers
private

Definition at line 66 of file WorldserverServiceDispatcher.h.


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