TrinityCore
Trinity::Net::Http::AbstractSocket Class Referenceabstract

#include <BaseHttpSocket.h>

+ Inheritance diagram for Trinity::Net::Http::AbstractSocket:

Public Member Functions

 AbstractSocket ()=default
 
 AbstractSocket (AbstractSocket const &other)=default
 
 AbstractSocket (AbstractSocket &&other)=default
 
AbstractSocketoperator= (AbstractSocket const &other)=default
 
AbstractSocketoperator= (AbstractSocket &&other)=default
 
virtual ~AbstractSocket ()=default
 
virtual void SendResponse (RequestContext &context)=0
 
virtual void QueueQuery (QueryCallback &&queryCallback)=0
 
virtual std::string GetClientInfo () const =0
 
virtual Optional< boost::uuids::uuid > GetSessionId () const =0
 

Static Public Member Functions

static bool ParseRequest (MessageBuffer &packet, RequestParser &parser)
 
static std::string SerializeRequest (Request const &request)
 
static MessageBuffer SerializeResponse (Request const &request, Response &response)
 

Detailed Description

Definition at line 37 of file BaseHttpSocket.h.

Constructor & Destructor Documentation

◆ AbstractSocket() [1/3]

Trinity::Net::Http::AbstractSocket::AbstractSocket ( )
default

◆ AbstractSocket() [2/3]

Trinity::Net::Http::AbstractSocket::AbstractSocket ( AbstractSocket const &  other)
default

◆ AbstractSocket() [3/3]

Trinity::Net::Http::AbstractSocket::AbstractSocket ( AbstractSocket &&  other)
default

◆ ~AbstractSocket()

virtual Trinity::Net::Http::AbstractSocket::~AbstractSocket ( )
virtualdefault

Member Function Documentation

◆ GetClientInfo()

◆ GetSessionId()

◆ operator=() [1/2]

AbstractSocket & Trinity::Net::Http::AbstractSocket::operator= ( AbstractSocket &&  other)
default

◆ operator=() [2/2]

AbstractSocket & Trinity::Net::Http::AbstractSocket::operator= ( AbstractSocket const &  other)
default

◆ ParseRequest()

bool Trinity::Net::Http::AbstractSocket::ParseRequest ( MessageBuffer packet,
RequestParser parser 
)
static

Definition at line 26 of file BaseHttpSocket.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ QueueQuery()

◆ SendResponse()

◆ SerializeRequest()

std::string Trinity::Net::Http::AbstractSocket::SerializeRequest ( Request const &  request)
static

Definition at line 39 of file BaseHttpSocket.cpp.

+ Here is the caller graph for this function:

◆ SerializeResponse()

MessageBuffer Trinity::Net::Http::AbstractSocket::SerializeResponse ( Request const &  request,
Response response 
)
static

Definition at line 67 of file BaseHttpSocket.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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