Emergency 20 Dokumentation  4.2.0
em5::MatchmakingProtocolBase Class Reference

Abstract matchmaking protocol base class. More...

#include <MatchmakingProtocolBase.h>

Inheritance diagram for em5::MatchmakingProtocolBase:
qsf::QsfBinaryProtocol qsf::QsfProtocol em5::MatchmakingProtocol

Public Member Functions

 MatchmakingProtocolBase (QsfProtocol *parent, bool isServer)
 Constructor. More...
 
virtual ~MatchmakingProtocolBase ()
 Destructor. More...
 
- Public Member Functions inherited from qsf::QsfBinaryProtocol
 QsfBinaryProtocol (QsfProtocol *parent)
 Constructor. More...
 
virtual ~QsfBinaryProtocol ()
 Destructor. More...
 
bool sendPacket (const packet::BinaryPacketBase &packet) const
 
virtual void handlePacket (const packet::BinaryPacketBase &packet)=0
 
virtual void onReceivePacket (const std::vector< char > &packet) override
 Called whenever a packet has been received from the peer. More...
 
- Public Member Functions inherited from qsf::QsfProtocol
 QsfProtocol (QsfProtocol *parent)
 Constructor. More...
 
virtual ~QsfProtocol ()
 Destructor. More...
 
virtual void disconnect ()
 Commands the protocol to close its connection. More...
 
virtual bool sendPacket (std::vector< char > &packet) const
 Commands the protocol to wrap up the given packet data and send it to the connected peer. More...
 
virtual void onConnected ()
 Called when the network connection with the peer has been successfully established. More...
 
virtual void onDisconnected ()
 Called when the network connection with the peer was closed. More...
 

Static Public Attributes

static const uint32 PROTOCOL_ID
 

Additional Inherited Members

- Protected Member Functions inherited from qsf::QsfBinaryProtocol
template<class PacketType >
void registerPacket ()
 
- Protected Attributes inherited from qsf::QsfBinaryProtocol
PacketList mInPackets
 

Detailed Description

Abstract matchmaking protocol base class.

Constructor & Destructor Documentation

em5::MatchmakingProtocolBase::MatchmakingProtocolBase ( QsfProtocol parent,
bool  isServer 
)

Constructor.

virtual em5::MatchmakingProtocolBase::~MatchmakingProtocolBase ( )
virtual

Destructor.

Member Data Documentation

const uint32 em5::MatchmakingProtocolBase::PROTOCOL_ID
static

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