![]() |
Leviathan
0.8.0.0
Leviathan game engine
|
#include <NetworkResponse.h>
Public Member Functions | |
NetworkResponse (NETWORK_RESPONSE_TYPE type, uint32_t responseid) | |
virtual | ~NetworkResponse () |
void | AddDataToPacket (sf::Packet &packet) const |
NETWORK_RESPONSE_TYPE | GetType () const |
DLLEXPORT std::string | GetTypeStr () const |
auto | GetResponseID () const |
Static Public Member Functions | |
static DLLEXPORT std::shared_ptr< NetworkResponse > | LoadFromPacket (sf::Packet &packet) |
static DLLEXPORT void | LimitResponseSize (ResponseIdentification &response, uint32_t maxsize) |
Limits size of response to avoid the application being used for DDoS amplification. More... | |
Protected Member Functions | |
virtual DLLEXPORT void | _SerializeCustom (sf::Packet &packet) const =0 |
Base classes serialize their data. More... | |
Protected Attributes | |
const NETWORK_RESPONSE_TYPE | Type |
Type of response. Specifies which subclass this object is. More... | |
const uint32_t | ResponseID = 0 |
Base class for all request objects
Definition at line 141 of file NetworkResponse.h.
|
inline |
Definition at line 143 of file NetworkResponse.h.
|
inlinevirtual |
Definition at line 150 of file NetworkResponse.h.
|
protectedpure virtual |
Base classes serialize their data.
Implemented in Leviathan::ResponseNone, and Leviathan::ResponseCustom.
|
inline |
Definition at line 152 of file NetworkResponse.h.
|
inline |
Definition at line 167 of file NetworkResponse.h.
|
inline |
Definition at line 159 of file NetworkResponse.h.
DLLEXPORT std::string NetworkResponse::GetTypeStr | ( | ) | const |
Definition at line 73 of file NetworkResponse.cpp.
|
static |
Limits size of response to avoid the application being used for DDoS amplification.
Definition at line 61 of file NetworkResponse.cpp.
|
static |
Definition at line 8 of file NetworkResponse.cpp.
|
protected |
Definition at line 186 of file NetworkResponse.h.
|
protected |
Type of response. Specifies which subclass this object is.
Definition at line 184 of file NetworkResponse.h.