#include <Session.h>
|
| | Session (Trinity::Net::IoContextTcpSocket &&socket) |
| |
| | ~Session () |
| |
| void | Start () |
| |
| bool | Update () |
| |
| boost::asio::ip::address const & | GetRemoteIpAddress () const |
| |
| bool | IsOpen () const |
| |
| void | CloseSocket () |
| |
| void | DelayedCloseSocket () |
| |
| uint32 | GetAccountId () const |
| |
| uint32 | GetGameAccountId () const |
| |
| void | SendResponse (uint32 token, pb::Message const *response) |
| |
| void | SendResponse (uint32 token, uint32 status) |
| |
| void | SendRequest (uint32 serviceHash, uint32 methodId, pb::Message const *request, std::function< void(MessageBuffer)> callback) |
| |
| void | SendRequest (uint32 serviceHash, uint32 methodId, pb::Message const *request) |
| |
| void | QueueQuery (QueryCallback &&queryCallback) |
| |
| uint32 | HandleLogon (authentication::v1::LogonRequest const *logonRequest, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation) |
| |
| uint32 | HandleVerifyWebCredentials (authentication::v1::VerifyWebCredentialsRequest const *verifyWebCredentialsRequest, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation) |
| |
| uint32 | HandleGenerateWebCredentials (authentication::v1::GenerateWebCredentialsRequest const *request, std::function< void(ServiceBase *, uint32, google::protobuf::Message const *)> &continuation) |
| |
| uint32 | HandleGetAccountState (account::v1::GetAccountStateRequest const *request, account::v1::GetAccountStateResponse *response) |
| |
| uint32 | HandleGetGameAccountState (account::v1::GetGameAccountStateRequest const *request, account::v1::GetGameAccountStateResponse *response) |
| |
| uint32 | HandleProcessClientRequest (game_utilities::v1::ClientRequest const *request, game_utilities::v1::ClientResponse *response) |
| |
| uint32 | HandleGetAllValuesForAttribute (game_utilities::v1::GetAllValuesForAttributeRequest const *request, game_utilities::v1::GetAllValuesForAttributeResponse *response) |
| |
| std::string | GetClientInfo () const |
| |
| Trinity::Net::SocketReadCallbackResult | ReadHandler () |
| |
|
| void | AsyncWrite (MessageBuffer *packet) |
| |
| uint32 | VerifyWebCredentials (std::string const &webCredentials, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation) |
| |
| uint32 | GetRealmListTicket (std::unordered_map< std::string, Variant const * > const ¶ms, game_utilities::v1::ClientResponse *response) |
| |
| uint32 | GetLastCharPlayed (std::unordered_map< std::string, Variant const * > const ¶ms, game_utilities::v1::ClientResponse *response) |
| |
| uint32 | GetRealmList (std::unordered_map< std::string, Variant const * > const ¶ms, game_utilities::v1::ClientResponse *response) |
| |
| uint32 | JoinRealm (std::unordered_map< std::string, Variant const * > const ¶ms, game_utilities::v1::ClientResponse *response) |
| |
Definition at line 68 of file Session.h.
◆ ClientRequestHandler
| typedef uint32(Session::* Battlenet::Session::ClientRequestHandler) (std::unordered_map< std::string, Variant const * > const &, game_utilities::v1::ClientResponse *) |
|
private |
◆ Socket
◆ Session()
◆ ~Session()
| Battlenet::Session::~Session |
( |
| ) |
|
|
default |
◆ AsyncWrite()
◆ CloseSocket()
| void Battlenet::Session::CloseSocket |
( |
| ) |
|
|
inline |
◆ CreateSocket()
◆ DelayedCloseSocket()
| void Battlenet::Session::DelayedCloseSocket |
( |
| ) |
|
|
inline |
◆ GetAccountId()
| uint32 Battlenet::Session::GetAccountId |
( |
| ) |
const |
|
inline |
◆ GetClientInfo()
| std::string Battlenet::Session::GetClientInfo |
( |
| ) |
const |
◆ GetGameAccountId()
| uint32 Battlenet::Session::GetGameAccountId |
( |
| ) |
const |
|
inline |
◆ GetLastCharPlayed()
| uint32 Battlenet::Session::GetLastCharPlayed |
( |
std::unordered_map< std::string, Variant const * > const & |
params, |
|
|
game_utilities::v1::ClientResponse * |
response |
|
) |
| |
|
private |
◆ GetRealmList()
| uint32 Battlenet::Session::GetRealmList |
( |
std::unordered_map< std::string, Variant const * > const & |
params, |
|
|
game_utilities::v1::ClientResponse * |
response |
|
) |
| |
|
private |
◆ GetRealmListTicket()
| uint32 Battlenet::Session::GetRealmListTicket |
( |
std::unordered_map< std::string, Variant const * > const & |
params, |
|
|
game_utilities::v1::ClientResponse * |
response |
|
) |
| |
|
private |
◆ GetRemoteIpAddress()
| boost::asio::ip::address const & Battlenet::Session::GetRemoteIpAddress |
( |
| ) |
const |
|
inline |
◆ HandleGenerateWebCredentials()
| uint32 Battlenet::Session::HandleGenerateWebCredentials |
( |
authentication::v1::GenerateWebCredentialsRequest const * |
request, |
|
|
std::function< void(ServiceBase *, uint32, google::protobuf::Message const *)> & |
continuation |
|
) |
| |
◆ HandleGetAccountState()
| uint32 Battlenet::Session::HandleGetAccountState |
( |
account::v1::GetAccountStateRequest const * |
request, |
|
|
account::v1::GetAccountStateResponse * |
response |
|
) |
| |
◆ HandleGetAllValuesForAttribute()
| uint32 Battlenet::Session::HandleGetAllValuesForAttribute |
( |
game_utilities::v1::GetAllValuesForAttributeRequest const * |
request, |
|
|
game_utilities::v1::GetAllValuesForAttributeResponse * |
response |
|
) |
| |
◆ HandleGetGameAccountState()
| uint32 Battlenet::Session::HandleGetGameAccountState |
( |
account::v1::GetGameAccountStateRequest const * |
request, |
|
|
account::v1::GetGameAccountStateResponse * |
response |
|
) |
| |
◆ HandleLogon()
| uint32 Battlenet::Session::HandleLogon |
( |
authentication::v1::LogonRequest const * |
logonRequest, |
|
|
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> & |
continuation |
|
) |
| |
◆ HandleProcessClientRequest()
| uint32 Battlenet::Session::HandleProcessClientRequest |
( |
game_utilities::v1::ClientRequest const * |
request, |
|
|
game_utilities::v1::ClientResponse * |
response |
|
) |
| |
◆ HandleVerifyWebCredentials()
| uint32 Battlenet::Session::HandleVerifyWebCredentials |
( |
authentication::v1::VerifyWebCredentialsRequest const * |
verifyWebCredentialsRequest, |
|
|
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> & |
continuation |
|
) |
| |
◆ IsOpen()
| bool Battlenet::Session::IsOpen |
( |
| ) |
const |
|
inline |
◆ JoinRealm()
| uint32 Battlenet::Session::JoinRealm |
( |
std::unordered_map< std::string, Variant const * > const & |
params, |
|
|
game_utilities::v1::ClientResponse * |
response |
|
) |
| |
|
private |
◆ QueueQuery()
| void Battlenet::Session::QueueQuery |
( |
QueryCallback && |
queryCallback | ) |
|
◆ ReadDataHandler()
| bool Battlenet::Session::ReadDataHandler |
( |
| ) |
|
|
protected |
◆ ReadHandler()
◆ ReadHeaderHandler()
| bool Battlenet::Session::ReadHeaderHandler |
( |
| ) |
|
|
protected |
◆ ReadHeaderLengthHandler()
| bool Battlenet::Session::ReadHeaderLengthHandler |
( |
| ) |
|
|
protected |
◆ SendRequest() [1/2]
| void Battlenet::Session::SendRequest |
( |
uint32 |
serviceHash, |
|
|
uint32 |
methodId, |
|
|
pb::Message const * |
request |
|
) |
| |
◆ SendRequest() [2/2]
| void Battlenet::Session::SendRequest |
( |
uint32 |
serviceHash, |
|
|
uint32 |
methodId, |
|
|
pb::Message const * |
request, |
|
|
std::function< void(MessageBuffer)> |
callback |
|
) |
| |
|
inline |
◆ SendResponse() [1/2]
| void Battlenet::Session::SendResponse |
( |
uint32 |
token, |
|
|
pb::Message const * |
response |
|
) |
| |
◆ SendResponse() [2/2]
| void Battlenet::Session::SendResponse |
( |
uint32 |
token, |
|
|
uint32 |
status |
|
) |
| |
◆ Start()
| void Battlenet::Session::Start |
( |
| ) |
|
◆ Update()
| bool Battlenet::Session::Update |
( |
| ) |
|
◆ VerifyWebCredentials()
| uint32 Battlenet::Session::VerifyWebCredentials |
( |
std::string const & |
webCredentials, |
|
|
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> & |
continuation |
|
) |
| |
|
private |
◆ _accountInfo
| std::shared_ptr<AccountInfo> Battlenet::Session::_accountInfo |
|
private |
◆ _authed
| bool Battlenet::Session::_authed |
|
private |
◆ _build
| uint32 Battlenet::Session::_build |
|
private |
◆ _clientInfo
◆ _clientSecret
| std::array<uint8, 32> Battlenet::Session::_clientSecret |
|
private |
◆ _gameAccountInfo
◆ _headerBuffer
◆ _headerLengthBuffer
◆ _ipCountry
| std::string Battlenet::Session::_ipCountry |
|
private |
◆ _locale
| std::string Battlenet::Session::_locale |
|
private |
◆ _os
| std::string Battlenet::Session::_os |
|
private |
◆ _packetBuffer
◆ _queryProcessor
◆ _requestToken
| uint32 Battlenet::Session::_requestToken |
|
private |
◆ _responseCallbacks
| std::unordered_map<uint32, std::function<void(MessageBuffer)> > Battlenet::Session::_responseCallbacks |
|
private |
◆ _socket
| std::shared_ptr<Socket> Battlenet::Session::_socket |
|
private |
◆ _timezoneOffset
| Minutes Battlenet::Session::_timezoneOffset |
|
private |
◆ ClientRequestHandlers
Initial value:=
{
}
uint32 JoinRealm(std::unordered_map< std::string, Variant const * > const ¶ms, game_utilities::v1::ClientResponse *response)
uint32 GetRealmList(std::unordered_map< std::string, Variant const * > const ¶ms, game_utilities::v1::ClientResponse *response)
uint32 GetLastCharPlayed(std::unordered_map< std::string, Variant const * > const ¶ms, game_utilities::v1::ClientResponse *response)
uint32 GetRealmListTicket(std::unordered_map< std::string, Variant const * > const ¶ms, game_utilities::v1::ClientResponse *response)
Definition at line 501 of file Session.h.
The documentation for this class was generated from the following files: