TrinityCore
bgs::protocol::connection::v1::ConnectionService Class Reference

#include <connection_service.pb.h>

+ Inheritance diagram for bgs::protocol::connection::v1::ConnectionService:

Public Types

typedef std::integral_constant< uint32, 0x65446991u > OriginalHash
 
typedef std::integral_constant< uint32, 0x2782094Bu > NameHash
 

Public Member Functions

 ConnectionService (bool use_original_hash)
 
 ConnectionService (ConnectionService const &)=delete
 
 ConnectionService (ConnectionService &&)=delete
 
ConnectionServiceoperator= (ConnectionService const &)=delete
 
ConnectionServiceoperator= (ConnectionService &&)=delete
 
virtual ~ConnectionService ()
 
void Connect (::bgs::protocol::connection::v1::ConnectRequest const *request, std::function< void(::bgs::protocol::connection::v1::ConnectResponse const *)> responseCallback, bool client=false, bool server=false)
 
void Bind (::bgs::protocol::connection::v1::BindRequest const *request, std::function< void(::bgs::protocol::connection::v1::BindResponse const *)> responseCallback, bool client=false, bool server=false)
 
void Echo (::bgs::protocol::connection::v1::EchoRequest const *request, std::function< void(::bgs::protocol::connection::v1::EchoResponse const *)> responseCallback, bool client=false, bool server=false)
 
void ForceDisconnect (::bgs::protocol::connection::v1::DisconnectNotification const *request, bool client=false, bool server=false)
 
void KeepAlive (::bgs::protocol::NoData const *request, bool client=false, bool server=false)
 
void Encrypt (::bgs::protocol::connection::v1::EncryptRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback, bool client=false, bool server=false)
 
void RequestDisconnect (::bgs::protocol::connection::v1::DisconnectRequest const *request, bool client=false, bool server=false)
 
void CallServerMethod (uint32 token, uint32 methodId, MessageBuffer buffer) final
 
- Public Member Functions inherited from ServiceBase
 ServiceBase (uint32 serviceHash)
 
virtual ~ServiceBase ()
 
virtual void CallServerMethod (uint32 token, uint32 methodId, MessageBuffer buffer)=0
 
virtual std::string GetCallerInfo () const =0
 
void LogDisallowedMethod (uint32 methodId)
 
void LogCallClientMethod (char const *methodName, char const *inputTypeName, google::protobuf::Message const *request)
 
void LogCallServerMethod (char const *methodName, char const *inputTypeName, google::protobuf::Message const *request)
 
void LogUnimplementedServerMethod (char const *methodName, google::protobuf::Message const *request)
 
void LogInvalidMethod (uint32 methodId)
 
void LogFailedParsingRequest (char const *methodName)
 
uint32 GetServiceHash () const
 

Static Public Member Functions

static google::protobuf::ServiceDescriptor const * descriptor ()
 

Protected Member Functions

virtual uint32 HandleConnect (::bgs::protocol::connection::v1::ConnectRequest const *request, ::bgs::protocol::connection::v1::ConnectResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
virtual uint32 HandleBind (::bgs::protocol::connection::v1::BindRequest const *request, ::bgs::protocol::connection::v1::BindResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
virtual uint32 HandleEcho (::bgs::protocol::connection::v1::EchoRequest const *request, ::bgs::protocol::connection::v1::EchoResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
virtual uint32 HandleForceDisconnect (::bgs::protocol::connection::v1::DisconnectNotification const *request)
 
virtual uint32 HandleKeepAlive (::bgs::protocol::NoData const *request)
 
virtual uint32 HandleEncrypt (::bgs::protocol::connection::v1::EncryptRequest const *request, ::bgs::protocol::NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
virtual uint32 HandleRequestDisconnect (::bgs::protocol::connection::v1::DisconnectRequest const *request)
 
- Protected Member Functions inherited from ServiceBase
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> CreateServerContinuation (uint32 token, uint32 methodId, char const *methodName, google::protobuf::Descriptor const *outputDescriptor)
 
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
 

Private Member Functions

void ParseAndHandleConnect (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleBind (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleEcho (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleForceDisconnect (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleKeepAlive (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleEncrypt (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleRequestDisconnect (uint32 token, uint32 methodId, MessageBuffer &buffer)
 

Additional Inherited Members

- Protected Attributes inherited from ServiceBase
uint32 service_hash_
 

Detailed Description

Definition at line 1183 of file connection_service.pb.h.

Member Typedef Documentation

◆ NameHash

typedef std::integral_constant<uint32, 0x2782094Bu> bgs::protocol::connection::v1::ConnectionService::NameHash

Definition at line 1195 of file connection_service.pb.h.

◆ OriginalHash

typedef std::integral_constant<uint32, 0x65446991u> bgs::protocol::connection::v1::ConnectionService::OriginalHash

Definition at line 1194 of file connection_service.pb.h.

Constructor & Destructor Documentation

◆ ConnectionService() [1/3]

bgs::protocol::connection::v1::ConnectionService::ConnectionService ( bool  use_original_hash)
explicit

◆ ConnectionService() [2/3]

bgs::protocol::connection::v1::ConnectionService::ConnectionService ( ConnectionService const &  )
delete

◆ ConnectionService() [3/3]

bgs::protocol::connection::v1::ConnectionService::ConnectionService ( ConnectionService &&  )
delete

◆ ~ConnectionService()

virtual bgs::protocol::connection::v1::ConnectionService::~ConnectionService ( )
virtual

Member Function Documentation

◆ Bind()

void bgs::protocol::connection::v1::ConnectionService::Bind ( ::bgs::protocol::connection::v1::BindRequest const *  request,
std::function< void(::bgs::protocol::connection::v1::BindResponse const *)>  responseCallback,
bool  client = false,
bool  server = false 
)

◆ CallServerMethod()

void bgs::protocol::connection::v1::ConnectionService::CallServerMethod ( uint32  token,
uint32  methodId,
MessageBuffer  buffer 
)
finalvirtual

Implements ServiceBase.

◆ Connect()

void bgs::protocol::connection::v1::ConnectionService::Connect ( ::bgs::protocol::connection::v1::ConnectRequest const *  request,
std::function< void(::bgs::protocol::connection::v1::ConnectResponse const *)>  responseCallback,
bool  client = false,
bool  server = false 
)

◆ descriptor()

static google::protobuf::ServiceDescriptor const * bgs::protocol::connection::v1::ConnectionService::descriptor ( )
static

◆ Echo()

void bgs::protocol::connection::v1::ConnectionService::Echo ( ::bgs::protocol::connection::v1::EchoRequest const *  request,
std::function< void(::bgs::protocol::connection::v1::EchoResponse const *)>  responseCallback,
bool  client = false,
bool  server = false 
)

◆ Encrypt()

void bgs::protocol::connection::v1::ConnectionService::Encrypt ( ::bgs::protocol::connection::v1::EncryptRequest const *  request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback,
bool  client = false,
bool  server = false 
)

◆ ForceDisconnect()

void bgs::protocol::connection::v1::ConnectionService::ForceDisconnect ( ::bgs::protocol::connection::v1::DisconnectNotification const *  request,
bool  client = false,
bool  server = false 
)

◆ HandleBind()

virtual uint32 bgs::protocol::connection::v1::ConnectionService::HandleBind ( ::bgs::protocol::connection::v1::BindRequest const *  request,
::bgs::protocol::connection::v1::BindResponse response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ HandleConnect()

virtual uint32 bgs::protocol::connection::v1::ConnectionService::HandleConnect ( ::bgs::protocol::connection::v1::ConnectRequest const *  request,
::bgs::protocol::connection::v1::ConnectResponse response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ HandleEcho()

virtual uint32 bgs::protocol::connection::v1::ConnectionService::HandleEcho ( ::bgs::protocol::connection::v1::EchoRequest const *  request,
::bgs::protocol::connection::v1::EchoResponse response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ HandleEncrypt()

virtual uint32 bgs::protocol::connection::v1::ConnectionService::HandleEncrypt ( ::bgs::protocol::connection::v1::EncryptRequest const *  request,
::bgs::protocol::NoData response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ HandleForceDisconnect()

virtual uint32 bgs::protocol::connection::v1::ConnectionService::HandleForceDisconnect ( ::bgs::protocol::connection::v1::DisconnectNotification const *  request)
protectedvirtual

◆ HandleKeepAlive()

virtual uint32 bgs::protocol::connection::v1::ConnectionService::HandleKeepAlive ( ::bgs::protocol::NoData const *  request)
protectedvirtual

◆ HandleRequestDisconnect()

virtual uint32 bgs::protocol::connection::v1::ConnectionService::HandleRequestDisconnect ( ::bgs::protocol::connection::v1::DisconnectRequest const *  request)
protectedvirtual

◆ KeepAlive()

void bgs::protocol::connection::v1::ConnectionService::KeepAlive ( ::bgs::protocol::NoData const *  request,
bool  client = false,
bool  server = false 
)

◆ operator=() [1/2]

ConnectionService & bgs::protocol::connection::v1::ConnectionService::operator= ( ConnectionService &&  )
delete

◆ operator=() [2/2]

ConnectionService & bgs::protocol::connection::v1::ConnectionService::operator= ( ConnectionService const &  )
delete

◆ ParseAndHandleBind()

void bgs::protocol::connection::v1::ConnectionService::ParseAndHandleBind ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleConnect()

void bgs::protocol::connection::v1::ConnectionService::ParseAndHandleConnect ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleEcho()

void bgs::protocol::connection::v1::ConnectionService::ParseAndHandleEcho ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleEncrypt()

void bgs::protocol::connection::v1::ConnectionService::ParseAndHandleEncrypt ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleForceDisconnect()

void bgs::protocol::connection::v1::ConnectionService::ParseAndHandleForceDisconnect ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleKeepAlive()

void bgs::protocol::connection::v1::ConnectionService::ParseAndHandleKeepAlive ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleRequestDisconnect()

void bgs::protocol::connection::v1::ConnectionService::ParseAndHandleRequestDisconnect ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ RequestDisconnect()

void bgs::protocol::connection::v1::ConnectionService::RequestDisconnect ( ::bgs::protocol::connection::v1::DisconnectRequest const *  request,
bool  client = false,
bool  server = false 
)

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