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
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 219 of file NetworkResponse.h.

Constructor & Destructor Documentation

◆ ResponseNone() [1/2]

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

Definition at line 221 of file NetworkResponse.h.

221  :
222  NetworkResponse(actualtype, responseid)
223  {}
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 228 of file NetworkResponse.h.

228  :
229  NetworkResponse(actualtype, responseid)
230  {
231  }
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 225 of file NetworkResponse.h.

225  {
226  }

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