Emergency 20 Dokumentation  4.2.0
em5::multiplayer::client::NetworkHost Class Reference

EMERGENCY 5 multiplayer network host (client side multiplayer host instance) More...

#include <NetworkHost.h>

Inheritance diagram for em5::multiplayer::client::NetworkHost:

Public Member Functions

 NetworkHost ()
 Constructor. More...
virtual ~NetworkHost ()
 Destructor. More...
virtual bool connect (const std::string &hostOrIpAddress, uint16 port) override
virtual bool sendData (const qsf::game::BitStream &bitStream) override
 Sends data to the host. More...
virtual void shutdown () override
- Public Member Functions inherited from em5::multiplayer::client::HostBase
 HostBase ()
 Default constructor. More...
virtual ~HostBase ()
 Destructor. More...

Additional Inherited Members

- Public Attributes inherited from em5::multiplayer::client::HostBase
boost::signals2::signal< void()> connected
 Called when the connection to the host is established. More...
boost::signals2::signal< void()> disconnected
 Called when the client is disconnected. More...
boost::signals2::signal< void()> unexpectedDisconnected
 Called when the client is disconnected unexpected. More...
boost::signals2::signal< void(const OperationMessage, uint32, const qsf::game::BitStream &)> receivedOperationMessage
 Called when a operation message is received from the host server. More...
- Protected Member Functions inherited from em5::multiplayer::client::HostBase
void onDataReceived (const qsf::game::BitStream &bitStream)
 Called, when data is received. More...

Detailed Description

EMERGENCY 5 multiplayer network host (client side multiplayer host instance)

Constructor & Destructor Documentation

em5::multiplayer::client::NetworkHost::NetworkHost ( )


virtual em5::multiplayer::client::NetworkHost::~NetworkHost ( )


Member Function Documentation

virtual bool em5::multiplayer::client::NetworkHost::connect ( const std::string &  hostOrIpAddress,
uint16  port 
virtual bool em5::multiplayer::client::NetworkHost::sendData ( const qsf::game::BitStream bitStream)

Sends data to the host.

Implements em5::multiplayer::client::HostBase.

virtual void em5::multiplayer::client::NetworkHost::shutdown ( )

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