![]() |
TrinityCore
|
#include <BaseHttpSocket.h>
Inheritance diagram for Trinity::Net::Http::BaseSocket< Stream >:Public Member Functions | |
| BaseSocket (BaseSocket const &other)=delete | |
| BaseSocket (BaseSocket &&other)=delete | |
| BaseSocket & | operator= (BaseSocket const &other)=delete |
| BaseSocket & | operator= (BaseSocket &&other)=delete |
| ~BaseSocket ()=default | |
| SocketReadCallbackResult | ReadHandler () final |
| bool | HandleMessage (Request &request) |
| virtual RequestHandlerResult | RequestHandler (RequestContext &context)=0 |
| void | SendResponse (RequestContext &context) final |
| void | Start () override |
| bool | Update () override |
| boost::asio::ip::address const & | GetRemoteIpAddress () const final |
| bool | IsOpen () const final |
| void | CloseSocket () final |
| std::string | GetClientInfo () const override |
| SessionState * | GetSessionState () const override |
| void | ResetHttpParser () |
Public Member Functions inherited from Trinity::Net::Socket< Stream > | |
| Socket (IoContextTcpSocket &&socket, Args &&... args) | |
| Socket (boost::asio::io_context &context, Args &&... args) | |
| Socket (Socket const &other)=delete | |
| Socket (Socket &&other)=delete | |
| Socket & | operator= (Socket const &other)=delete |
| Socket & | operator= (Socket &&other)=delete |
| virtual | ~Socket () |
| decltype(auto) | Connect (boost::asio::ip::tcp::endpoint const &endpoint, Callback &&callback) |
| decltype(auto) | Connect (std::vector< boost::asio::ip::tcp::endpoint > const &endpoints, Callback &&callback) |
| boost::asio::ip::address const & | GetRemoteIpAddress () const |
| uint16 | GetRemotePort () const |
| void | SetRemoteEndpoint (boost::asio::ip::tcp::endpoint const &endpoint) |
| void | AsyncRead (Callback &&callback) |
| void | QueuePacket (MessageBuffer &&buffer) |
| bool | IsOpen () const |
| void | CloseSocket () |
| void | DelayedCloseSocket () |
| Marks the socket for closing after write buffer becomes empty. | |
| MessageBuffer & | GetReadBuffer () |
| Stream & | underlying_stream () |
Public Member Functions inherited from Trinity::Net::Http::AbstractSocket | |
| AbstractSocket ()=default | |
| AbstractSocket (AbstractSocket const &other)=default | |
| AbstractSocket (AbstractSocket &&other)=default | |
| AbstractSocket & | operator= (AbstractSocket const &other)=default |
| AbstractSocket & | operator= (AbstractSocket &&other)=default |
| virtual | ~AbstractSocket ()=default |
| void | LogRequestAndResponse (RequestContext const &context, MessageBuffer &buffer) const |
| Optional< boost::uuids::uuid > | GetSessionId () const |
Protected Member Functions | |
| virtual std::shared_ptr< SessionState > | ObtainSessionState (RequestContext &context) const =0 |
Protected Member Functions inherited from Trinity::Net::Socket< Stream > | |
| virtual void | OnClose () |
| bool | AsyncProcessQueue () |
| void | SetNoDelay (bool enable) |
Protected Attributes | |
| Optional< RequestParser > | _httpParser |
| std::shared_ptr< SessionState > | _state |
Private Types | |
| using | Base = Trinity::Net::Socket< Stream > |
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) |
Definition at line 140 of file BaseHttpSocket.h.
|
private |
Definition at line 142 of file BaseHttpSocket.h.
|
delete |
|
delete |
|
default |
|
inlinefinalvirtual |
Implements Trinity::Net::Http::AbstractSocket.
Definition at line 216 of file BaseHttpSocket.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineoverridevirtual |
Implements Trinity::Net::Http::AbstractSocket.
Definition at line 218 of file BaseHttpSocket.h.
Here is the call graph for this function:
|
inlinefinalvirtual |
Implements Trinity::Net::Http::AbstractSocket.
Definition at line 212 of file BaseHttpSocket.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineoverridevirtual |
Implements Trinity::Net::Http::AbstractSocket.
Definition at line 223 of file BaseHttpSocket.h.
|
inline |
Definition at line 177 of file BaseHttpSocket.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinefinalvirtual |
Implements Trinity::Net::Http::AbstractSocket.
Definition at line 214 of file BaseHttpSocket.h.
Here is the call graph for this function:
|
protectedpure virtual |
Here is the caller graph for this function:
|
delete |
|
delete |
|
inlinefinalvirtual |
Reimplemented from Trinity::Net::Socket< Stream >.
Definition at line 154 of file BaseHttpSocket.h.
Here is the call graph for this function:
|
pure virtual |
|
inline |
|
inlinefinalvirtual |
Implements Trinity::Net::Http::AbstractSocket.
Definition at line 194 of file BaseHttpSocket.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineoverridevirtual |
Reimplemented from Trinity::Net::Socket< Stream >.
Reimplemented in Trinity::Net::Http::Socket, and Trinity::Net::Http::SslSocket.
Definition at line 208 of file BaseHttpSocket.h.
Here is the call graph for this function:
|
inlineoverridevirtual |
Reimplemented from Trinity::Net::Socket< Stream >.
Definition at line 210 of file BaseHttpSocket.h.
Here is the call graph for this function:
|
protected |
Definition at line 235 of file BaseHttpSocket.h.
|
protected |
Definition at line 236 of file BaseHttpSocket.h.