#include <ServiceDispatcher.h>
Battlenet::ServiceDispatcher::ServiceDispatcher |
( |
| ) |
|
|
private |
22 AddService<Services::Account>();
23 AddService<Services::Authentication>();
24 AddService<Service<challenge::v1::ChallengeService>>();
25 AddService<Service<channel::v1::ChannelService>>();
26 AddService<Services::Connection>();
27 AddService<Service<friends::v1::FriendsService>>();
28 AddService<Services::GameUtilities>();
29 AddService<Service<presence::v1::PresenceService>>();
30 AddService<Service<report::v1::ReportService>>();
31 AddService<Service<resources::v1::ResourcesService>>();
32 AddService<Service<user_manager::v1::UserManagerService>>();
template<class Service >
void Battlenet::ServiceDispatcher::AddService |
( |
| ) |
|
|
inlineprivate |
std::unordered_map< uint32, std::function< void(Session *, uint32, uint32, MessageBuffer)> > _dispatchers
Definition: ServiceDispatcher.h:62
const FieldDescriptor value
Definition: descriptor.h:1522
39 itr->second(session, token, methodId, std::forward<MessageBuffer>(buffer));
41 TC_LOG_DEBUG(
"session.rpc",
"%s tried to call invalid service 0x%X", session->GetClientInfo().c_str(), serviceHash);
std::unordered_map< uint32, std::function< void(Session *, uint32, uint32, MessageBuffer)> > _dispatchers
Definition: ServiceDispatcher.h:62
#define TC_LOG_DEBUG(filterType__,...)
Definition: Log.h:198
59 Service(session).CallServerMethod(token, methodId, std::forward<MessageBuffer>(buffer));
ServiceDispatcher()
Definition: ServiceDispatcher.cpp:20
The documentation for this class was generated from the following files: