18#ifndef ServiceBase_h__
19#define ServiceBase_h__
46 void LogDisallowedMethod(
uint32 methodId);
47 void LogCallClientMethod(
char const* methodName,
char const* inputTypeName, google::protobuf::Message
const* request);
48 void LogCallServerMethod(
char const* methodName,
char const* inputTypeName, google::protobuf::Message
const* request);
49 void LogUnimplementedServerMethod(
char const* methodName, google::protobuf::Message
const* request);
50 void LogInvalidMethod(
uint32 methodId);
51 void LogFailedParsingRequest(
char const* methodName);
56 std::function<void(
ServiceBase*,
uint32, ::google::protobuf::Message
const*)> CreateServerContinuation(
uint32 token,
uint32 methodId,
char const* methodName, google::protobuf::Descriptor
const* outputDescriptor);
uint32 GetServiceHash() const
virtual void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer)=0
virtual std::string GetCallerInfo() const =0
ServiceBase(uint32 serviceHash)
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 SendRequest(uint32 serviceHash, uint32 methodId, google::protobuf::Message const *request, std::function< void(MessageBuffer)> callback)=0
virtual void SendResponse(uint32 serviceHash, uint32 methodId, uint32 token, google::protobuf::Message const *response)=0