TrinityCore
Battlenet::ServiceDispatcher Class Reference

#include <ServiceDispatcher.h>

Public Member Functions

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

Static Public Member Functions

static ServiceDispatcherInstance ()
 

Private Types

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

Private Member Functions

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

Static Private Member Functions

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

Private Attributes

std::unordered_map< uint32, ServiceMethod_dispatchers
 

Detailed Description

Definition at line 43 of file ServiceDispatcher.h.

Member Typedef Documentation

◆ ServiceMethod

typedef void(* Battlenet::ServiceDispatcher::ServiceMethod) (Session *, uint32, uint32, MessageBuffer)
private

Definition at line 65 of file ServiceDispatcher.h.

Constructor & Destructor Documentation

◆ ServiceDispatcher()

Battlenet::ServiceDispatcher::ServiceDispatcher ( )
private

Definition at line 20 of file ServiceDispatcher.cpp.

Member Function Documentation

◆ AddService()

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

Definition at line 54 of file ServiceDispatcher.h.

◆ Dispatch() [1/2]

void Battlenet::ServiceDispatcher::Dispatch ( Session session,
uint32  serviceHash,
uint32  token,
uint32  methodId,
MessageBuffer  buffer 
)

Definition at line 36 of file ServiceDispatcher.cpp.

+ Here is the call graph for this function:

◆ Dispatch() [2/2]

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

Definition at line 60 of file ServiceDispatcher.h.

◆ Instance()

Battlenet::ServiceDispatcher & Battlenet::ServiceDispatcher::Instance ( )
static

Definition at line 45 of file ServiceDispatcher.cpp.

Member Data Documentation

◆ _dispatchers

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

Definition at line 66 of file ServiceDispatcher.h.


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