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
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
 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 

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 

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

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: