TrinityCore
Loading...
Searching...
No Matches
Battlenet::ServiceBaseCaller Class Reference

#include <Service.h>

+ Inheritance diagram for Battlenet::ServiceBaseCaller:

Protected Member Functions

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

Protected Attributes

Session * _session
 

Detailed Description

Definition at line 37 of file Service.h.

Constructor & Destructor Documentation

◆ ServiceBaseCaller()

Battlenet::ServiceBaseCaller::ServiceBaseCaller ( Session *  session)
inlineexplicitprotected

Definition at line 40 of file Service.h.

Member Function Documentation

◆ GetCallerInfo()

std::string Battlenet::ServiceBaseCaller::GetCallerInfo ( ) const
protected

Definition at line 41 of file Service.cpp.

Referenced by Battlenet::Service< T >::GetCallerInfo().

◆ SendRequest() [1/2]

void Battlenet::ServiceBaseCaller::SendRequest ( uint32  serviceHash,
uint32  methodId,
google::protobuf::Message const *  request 
)
protected

Definition at line 26 of file Service.cpp.

◆ SendRequest() [2/2]

void Battlenet::ServiceBaseCaller::SendRequest ( uint32  serviceHash,
uint32  methodId,
google::protobuf::Message const *  request,
std::function< void(MessageBuffer)> &&  callback 
)
protected

◆ SendResponse() [1/2]

void Battlenet::ServiceBaseCaller::SendResponse ( uint32  serviceHash,
uint32  methodId,
uint32  token,
google::protobuf::Message const *  response 
)
protected

Definition at line 36 of file Service.cpp.

◆ SendResponse() [2/2]

void Battlenet::ServiceBaseCaller::SendResponse ( uint32  serviceHash,
uint32  methodId,
uint32  token,
uint32  status 
)
protected

Member Data Documentation

◆ _session


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