TrinityCore
Loading...
Searching...
No Matches
Battlenet::LoginHttpSession Class Referencefinal

#include <LoginHttpSession.h>

+ Inheritance diagram for Battlenet::LoginHttpSession:

Public Member Functions

 LoginHttpSession (Trinity::Net::IoContextTcpSocket &&socket)
 
 ~LoginHttpSession ()
 
void Start () override
 
bool Update () override
 
boost::asio::ip::address const & GetRemoteIpAddress () const override
 
bool IsOpen () const override
 
void CloseSocket () override
 
void SendResponse (Trinity::Net::Http::RequestContext &context) override
 
void QueueQuery (QueryCallback &&queryCallback)
 
std::string GetClientInfo () const override
 
LoginSessionStateGetSessionState () const override
 
- Public Member Functions inherited from Trinity::Net::Http::AbstractSocket
 AbstractSocket ()=default
 
 AbstractSocket (AbstractSocket const &other)=default
 
 AbstractSocket (AbstractSocket &&other)=default
 
AbstractSocketoperator= (AbstractSocket const &other)=default
 
AbstractSocketoperator= (AbstractSocket &&other)=default
 
virtual ~AbstractSocket ()=default
 
void LogRequestAndResponse (RequestContext const &context, MessageBuffer &buffer) const
 
Optional< boost::uuids::uuid > GetSessionId () const
 

Static Public Attributes

static constexpr std::string_view SESSION_ID_COOKIE = "JSESSIONID="
 

Private Attributes

std::shared_ptr< Trinity::Net::Http::AbstractSocket_socket
 
QueryCallbackProcessor _queryProcessor
 

Additional Inherited Members

- Static Public Member Functions inherited from Trinity::Net::Http::AbstractSocket
static bool ParseRequest (MessageBuffer &packet, RequestParser &parser)
 
static bool ParseResponse (MessageBuffer &packet, ResponseParser &parser)
 
static MessageBuffer SerializeRequest (Request const &request)
 
static MessageBuffer SerializeResponse (Request const &request, Response const &response)
 
static std::string GetClientInfo (boost::asio::ip::address const &address, uint16 port, SessionState const *state)
 

Detailed Description

Definition at line 33 of file LoginHttpSession.h.

Constructor & Destructor Documentation

◆ LoginHttpSession()

Battlenet::LoginHttpSession::LoginHttpSession ( Trinity::Net::IoContextTcpSocket &&  socket)
explicit

Definition at line 120 of file LoginHttpSession.cpp.

◆ ~LoginHttpSession()

Battlenet::LoginHttpSession::~LoginHttpSession ( )
default

Member Function Documentation

◆ CloseSocket()

void Battlenet::LoginHttpSession::CloseSocket ( )
inlineoverridevirtual

Implements Trinity::Net::Http::AbstractSocket.

Definition at line 45 of file LoginHttpSession.h.

◆ GetClientInfo()

std::string Battlenet::LoginHttpSession::GetClientInfo ( ) const
inlineoverridevirtual

Implements Trinity::Net::Http::AbstractSocket.

Definition at line 49 of file LoginHttpSession.h.

+ Here is the caller graph for this function:

◆ GetRemoteIpAddress()

boost::asio::ip::address const & Battlenet::LoginHttpSession::GetRemoteIpAddress ( ) const
inlineoverridevirtual

Implements Trinity::Net::Http::AbstractSocket.

Definition at line 43 of file LoginHttpSession.h.

◆ GetSessionState()

LoginSessionState * Battlenet::LoginHttpSession::GetSessionState ( ) const
inlineoverridevirtual

Implements Trinity::Net::Http::AbstractSocket.

Definition at line 50 of file LoginHttpSession.h.

◆ IsOpen()

bool Battlenet::LoginHttpSession::IsOpen ( ) const
inlineoverridevirtual

Implements Trinity::Net::Http::AbstractSocket.

Definition at line 44 of file LoginHttpSession.h.

◆ QueueQuery()

void Battlenet::LoginHttpSession::QueueQuery ( QueryCallback &&  queryCallback)

Definition at line 145 of file LoginHttpSession.cpp.

+ Here is the call graph for this function:

◆ SendResponse()

void Battlenet::LoginHttpSession::SendResponse ( Trinity::Net::Http::RequestContext context)
inlineoverridevirtual

Implements Trinity::Net::Http::AbstractSocket.

Definition at line 47 of file LoginHttpSession.h.

◆ Start()

void Battlenet::LoginHttpSession::Start ( )
overridevirtual

Implements Trinity::Net::Http::AbstractSocket.

Definition at line 129 of file LoginHttpSession.cpp.

+ Here is the call graph for this function:

◆ Update()

bool Battlenet::LoginHttpSession::Update ( )
overridevirtual

Implements Trinity::Net::Http::AbstractSocket.

Definition at line 136 of file LoginHttpSession.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _queryProcessor

QueryCallbackProcessor Battlenet::LoginHttpSession::_queryProcessor
private

Definition at line 54 of file LoginHttpSession.h.

◆ _socket

std::shared_ptr<Trinity::Net::Http::AbstractSocket> Battlenet::LoginHttpSession::_socket
private

Definition at line 53 of file LoginHttpSession.h.

◆ SESSION_ID_COOKIE

constexpr std::string_view Battlenet::LoginHttpSession::SESSION_ID_COOKIE = "JSESSIONID="
staticconstexpr

Definition at line 36 of file LoginHttpSession.h.


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