TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ServiceBase Class Referenceabstract

#include <ServiceBase.h>

Public Member Functions

virtual ~ServiceBase ()
 
virtual void CallServerMethod (uint32 token, uint32 methodId, MessageBuffer buffer)=0
 

Protected Member Functions

virtual void SendRequest (uint32 serviceHash, uint32 methodId, google::protobuf::Message const *request, std::function< void(MessageBuffer)> callback)=0
 
virtual void SendRequest (uint32 serviceHash, uint32 methodId, google::protobuf::Message const *request)=0
 
virtual void SendResponse (uint32 serviceHash, uint32 methodId, uint32 token, uint32 status)=0
 
virtual void SendResponse (uint32 serviceHash, uint32 methodId, uint32 token, google::protobuf::Message const *response)=0
 
virtual std::string GetCallerInfo () const =0
 

Constructor & Destructor Documentation

virtual ServiceBase::~ServiceBase ( )
inlinevirtual
37 { }

Member Function Documentation

virtual std::string ServiceBase::GetCallerInfo ( ) const
protectedpure virtual
virtual void ServiceBase::SendRequest ( uint32  serviceHash,
uint32  methodId,
google::protobuf::Message const request,
std::function< void(MessageBuffer)>  callback 
)
protectedpure virtual
virtual void ServiceBase::SendRequest ( uint32  serviceHash,
uint32  methodId,
google::protobuf::Message const request 
)
protectedpure virtual
virtual void ServiceBase::SendResponse ( uint32  serviceHash,
uint32  methodId,
uint32  token,
uint32  status 
)
protectedpure virtual
virtual void ServiceBase::SendResponse ( uint32  serviceHash,
uint32  methodId,
uint32  token,
google::protobuf::Message const response 
)
protectedpure virtual

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