TrinityCore
Loading...
Searching...
No Matches
Battlenet::WorldserverService< T > Class Template Reference

#include <WorldserverService.h>

+ Inheritance diagram for Battlenet::WorldserverService< T >:

Public Member Functions

 WorldserverService (WorldSession *session)
 

Protected Member Functions

void SendRequest (uint32 serviceHash, uint32 methodId, google::protobuf::Message const *request, std::function< void(MessageBuffer)> callback) override
 
void SendRequest (uint32 serviceHash, uint32 methodId, google::protobuf::Message const *request) override
 
void SendResponse (uint32 serviceHash, uint32 methodId, uint32 token, uint32 status) override
 
void SendResponse (uint32 serviceHash, uint32 methodId, uint32 token, google::protobuf::Message const *response) override
 
std::string GetCallerInfo () const override
 

Protected Attributes

WorldSession * _session
 

Detailed Description

template<class T>
class Battlenet::WorldserverService< T >

Definition at line 29 of file WorldserverService.h.

Constructor & Destructor Documentation

◆ WorldserverService()

template<class T >
Battlenet::WorldserverService< T >::WorldserverService ( WorldSession *  session)
inline

Definition at line 32 of file WorldserverService.h.

Member Function Documentation

◆ GetCallerInfo()

template<class T >
std::string Battlenet::WorldserverService< T >::GetCallerInfo ( ) const
inlineoverrideprotected

◆ SendRequest() [1/2]

template<class T >
void Battlenet::WorldserverService< T >::SendRequest ( uint32  serviceHash,
uint32  methodId,
google::protobuf::Message const *  request 
)
inlineoverrideprotected

◆ SendRequest() [2/2]

template<class T >
void Battlenet::WorldserverService< T >::SendRequest ( uint32  serviceHash,
uint32  methodId,
google::protobuf::Message const *  request,
std::function< void(MessageBuffer)>  callback 
)
inlineoverrideprotected

◆ SendResponse() [1/2]

template<class T >
void Battlenet::WorldserverService< T >::SendResponse ( uint32  serviceHash,
uint32  methodId,
uint32  token,
google::protobuf::Message const *  response 
)
inlineoverrideprotected

◆ SendResponse() [2/2]

template<class T >
void Battlenet::WorldserverService< T >::SendResponse ( uint32  serviceHash,
uint32  methodId,
uint32  token,
uint32  status 
)
inlineoverrideprotected

Member Data Documentation

◆ _session


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