TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Battlenet::WorldserverService< T > Class Template Reference

#include <WorldserverService.h>

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
 

Constructor & Destructor Documentation

template<class T>
Battlenet::WorldserverService< T >::WorldserverService ( WorldSession session)
inline
43 : T(false), _session(session) { }
WorldSession * _session
Definition: WorldserverService.h:52

Member Function Documentation

template<class T>
std::string Battlenet::WorldserverService< T >::GetCallerInfo ( ) const
inlineoverrideprotected
50 { return _session->GetPlayerInfo(); }
WorldSession * _session
Definition: WorldserverService.h:52
std::string GetPlayerInfo() const
Definition: WorldSession.cpp:195
template<class T>
void Battlenet::WorldserverService< T >::SendRequest ( uint32  serviceHash,
uint32  methodId,
google::protobuf::Message const request,
std::function< void(MessageBuffer)>  callback 
)
inlineoverrideprotected
46 { _session->SendBattlenetRequest(serviceHash, methodId, request, std::move(callback)); }
void SendBattlenetRequest(uint32 serviceHash, uint32 methodId, pb::Message const *request, std::function< void(MessageBuffer)> callback)
Definition: BattlenetHandler.cpp:67
WorldSession * _session
Definition: WorldserverService.h:52
template<class T>
void Battlenet::WorldserverService< T >::SendRequest ( uint32  serviceHash,
uint32  methodId,
google::protobuf::Message const request 
)
inlineoverrideprotected
47 { _session->SendBattlenetRequest(serviceHash, methodId, request); }
void SendBattlenetRequest(uint32 serviceHash, uint32 methodId, pb::Message const *request, std::function< void(MessageBuffer)> callback)
Definition: BattlenetHandler.cpp:67
WorldSession * _session
Definition: WorldserverService.h:52
template<class T>
void Battlenet::WorldserverService< T >::SendResponse ( uint32  serviceHash,
uint32  methodId,
uint32  token,
uint32  status 
)
inlineoverrideprotected
48 { _session->SendBattlenetResponse(serviceHash, methodId, token, status); }
WorldSession * _session
Definition: WorldserverService.h:52
void SendBattlenetResponse(uint32 serviceHash, uint32 methodId, uint32 token, pb::Message const *response)
Definition: BattlenetHandler.cpp:39
template<class T>
void Battlenet::WorldserverService< T >::SendResponse ( uint32  serviceHash,
uint32  methodId,
uint32  token,
google::protobuf::Message const response 
)
inlineoverrideprotected
49 { _session->SendBattlenetResponse(serviceHash, methodId, token, response); }
WorldSession * _session
Definition: WorldserverService.h:52
void SendBattlenetResponse(uint32 serviceHash, uint32 methodId, uint32 token, pb::Message const *response)
Definition: BattlenetHandler.cpp:39

Member Data Documentation

template<class T>
WorldSession* Battlenet::WorldserverService< T >::_session
protected

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