Leviathan  0.8.0.0
Leviathan game engine
Leviathan::ResponseNone Class Reference

Empty keep alive response. More...

#include <NetworkResponse.h>

+ Inheritance diagram for Leviathan::ResponseNone:

Public Member Functions

 ResponseNone (NETWORK_RESPONSE_TYPE actualtype, uint32_t responseid=0)
 
void _SerializeCustom (sf::Packet &packet) const override
 Base classes serialize their data. More...
 
 ResponseNone (NETWORK_RESPONSE_TYPE actualtype, uint32_t responseid, sf::Packet &packet)
 
- Public Member Functions inherited from Leviathan::NetworkResponse
 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
 

Additional Inherited Members

- Static Public Member Functions inherited from Leviathan::NetworkResponse
static DLLEXPORT std::shared_ptr< NetworkResponseLoadFromPacket (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 Attributes inherited from Leviathan::NetworkResponse
const NETWORK_RESPONSE_TYPE Type
 Type of response. Specifies which subclass this object is. More...
 
const uint32_t ResponseID = 0
 

Detailed Description

Empty keep alive response.

Also used for all other responses that don't need any data members

Definition at line 229 of file NetworkResponse.h.

Constructor & Destructor Documentation

◆ ResponseNone() [1/2]

Leviathan::ResponseNone::ResponseNone ( NETWORK_RESPONSE_TYPE  actualtype,
uint32_t  responseid = 0 
)
inline

Definition at line 231 of file NetworkResponse.h.

231  :
232  NetworkResponse(actualtype, responseid)
233  {}
NetworkResponse(NETWORK_RESPONSE_TYPE type, uint32_t responseid)

◆ ResponseNone() [2/2]

Leviathan::ResponseNone::ResponseNone ( NETWORK_RESPONSE_TYPE  actualtype,
uint32_t  responseid,
sf::Packet &  packet 
)
inline

Definition at line 237 of file NetworkResponse.h.

237  :
238  NetworkResponse(actualtype, responseid)
239  {}
NetworkResponse(NETWORK_RESPONSE_TYPE type, uint32_t responseid)

Member Function Documentation

◆ _SerializeCustom()

void Leviathan::ResponseNone::_SerializeCustom ( sf::Packet &  packet) const
inlineoverridevirtual

Base classes serialize their data.

Implements Leviathan::NetworkResponse.

Definition at line 235 of file NetworkResponse.h.

235 {}

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