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.

+ Here is the caller graph for this function:

◆ 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

Definition at line 21 of file Service.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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

Definition at line 31 of file Service.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _session

Session* Battlenet::ServiceBaseCaller::_session
protected

Definition at line 48 of file Service.h.


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