Emergency 20 Dokumentation  4.2.0
em5::packet::TestOpenPortResponse Class Reference

This class represents a network package sent by the server as a response to the TestOpenPortRequest, telling the client (=game host) if it is reachable from the internet or not. More...

#include <TestOpenPortResponse.h>

Inheritance diagram for em5::packet::TestOpenPortResponse:
qsf::packet::BinaryPacket< TestOpenPortResponse > qsf::packet::BinaryPacketBase

Classes

struct  ReachableAddress
 
struct  ResultSet
 

Public Member Functions

 TestOpenPortResponse ()
 Default constructor. More...
 
const ResultSetgetResultSet () const
 
void setResultSet (const ResultSet &resultSet)
 
bool getOverallResult () const
 
virtual void serialize (qsf::BinarySerializer &serializer) override
 Method that implements the actual de/serialization. More...
 
- Public Member Functions inherited from qsf::packet::BinaryPacket< TestOpenPortResponse >
virtual uint32 getPacketId () const override
 Returns the packet identifier that was specified as the template parameter. More...
 
- Public Member Functions inherited from qsf::packet::BinaryPacketBase
 BinaryPacketBase ()
 Default constructor. More...
 
virtual ~BinaryPacketBase ()
 Destructor. More...
 
void deserialize (const BinarySerializer &serializer)
 Deserializes the packet from the given qsf::BinarySerializer object. More...
 
void serialize (BinarySerializer &serializer) const
 Serializes the packet to the given qsf::BinarySerializer object. More...
 

Static Public Attributes

static const uint32 PACKET_ID
 StringHash of the string "em5::packet::TestOpenPortResponse". More...
 

Detailed Description

This class represents a network package sent by the server as a response to the TestOpenPortRequest, telling the client (=game host) if it is reachable from the internet or not.

Constructor & Destructor Documentation

em5::packet::TestOpenPortResponse::TestOpenPortResponse ( )

Default constructor.

Member Function Documentation

bool em5::packet::TestOpenPortResponse::getOverallResult ( ) const
const ResultSet& em5::packet::TestOpenPortResponse::getResultSet ( ) const
virtual void em5::packet::TestOpenPortResponse::serialize ( qsf::BinarySerializer serializer)
overridevirtual

Method that implements the actual de/serialization.

Parameters
[in]serializerThe serializer object that the packet should de/serialize from/to
Note
  • Even though "this" is not const it is strictly prohibited to modify "this" if the serializer is in write mode

Reimplemented from qsf::packet::BinaryPacketBase.

void em5::packet::TestOpenPortResponse::setResultSet ( const ResultSet resultSet)

Member Data Documentation

const uint32 em5::packet::TestOpenPortResponse::PACKET_ID
static

StringHash of the string "em5::packet::TestOpenPortResponse".


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