TrinityCore
Battlenet::Service< T > Class Template Reference

#include <Service.h>

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

Public Member Functions

 Service (Session *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, uint32, uint32 token, uint32 status) override
 
void SendResponse (uint32, uint32, uint32 token, google::protobuf::Message const *response) override
 
std::string GetCallerInfo () const override
 

Protected Attributes

Session_session
 

Detailed Description

template<class T>
class Battlenet::Service< T >

Definition at line 29 of file Service.h.

Constructor & Destructor Documentation

◆ Service()

template<class T >
Battlenet::Service< T >::Service ( Session session)
inline

Definition at line 32 of file Service.h.

Member Function Documentation

◆ GetCallerInfo()

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

Definition at line 39 of file Service.h.

+ Here is the call graph for this function:

◆ SendRequest() [1/2]

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

Definition at line 36 of file Service.h.

+ Here is the call graph for this function:

◆ SendRequest() [2/2]

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

Definition at line 35 of file Service.h.

+ Here is the call graph for this function:

◆ SendResponse() [1/2]

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

Definition at line 38 of file Service.h.

+ Here is the call graph for this function:

◆ SendResponse() [2/2]

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

Definition at line 37 of file Service.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ _session

template<class T >
Session* Battlenet::Service< T >::_session
protected

Definition at line 41 of file Service.h.


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