Emergency 20 Dokumentation  4.2.0
em5::MatchmakingProtocol Class Reference

Matchmaking protocol class. More...

#include <MatchmakingProtocol.h>

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

Public Member Functions

 MatchmakingProtocol (QsfProtocol *parent, MatchmakingClient *client)
 Constructor. More...
virtual ~MatchmakingProtocol ()
 Destructor. More...
void requestRegisterHost (const multiplayer::HostEntry &hostEntry, const std::string &gameModificationString) const
void requestTestOpenPort () const
void updateHost (const multiplayer::HostEntry &hostEntry) const
void unregisterHost () const
void requestHostList (const std::string &gameModificationString) const
void requestProxyServerProperties () const
virtual void handlePacket (const qsf::packet::BinaryPacketBase &packet) override
- Public Member Functions inherited from em5::MatchmakingProtocolBase
 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 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...

Additional Inherited Members

- Static Public Attributes inherited from em5::MatchmakingProtocolBase
static const uint32 PROTOCOL_ID
- Protected Member Functions inherited from qsf::QsfBinaryProtocol
template<class PacketType >
void registerPacket ()
- Protected Attributes inherited from qsf::QsfBinaryProtocol
PacketList mInPackets

Detailed Description

Matchmaking protocol class.

Constructor & Destructor Documentation

em5::MatchmakingProtocol::MatchmakingProtocol ( QsfProtocol parent,
MatchmakingClient client 


virtual em5::MatchmakingProtocol::~MatchmakingProtocol ( )


Member Function Documentation

virtual void em5::MatchmakingProtocol::handlePacket ( const qsf::packet::BinaryPacketBase packet)
void em5::MatchmakingProtocol::requestHostList ( const std::string &  gameModificationString) const
void em5::MatchmakingProtocol::requestProxyServerProperties ( ) const
void em5::MatchmakingProtocol::requestRegisterHost ( const multiplayer::HostEntry hostEntry,
const std::string &  gameModificationString 
) const
void em5::MatchmakingProtocol::requestTestOpenPort ( ) const
void em5::MatchmakingProtocol::unregisterHost ( ) const
void em5::MatchmakingProtocol::updateHost ( const multiplayer::HostEntry hostEntry) const

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