Bridges-C++  3.4.4
Bridges(C++ API)
Public Member Functions | List of all members
bridges::game::SocketConnection Class Reference

#include <SocketConnection.h>

Detailed Description

This is meant to be an internal class, not something that the library user will use.

This class provide functionality for making socket connections to the Bridges Game server

Author
Erik Saule, David Burlinson
Date
2019, 12/29/20

Public Member Functions

 SocketConnection (bridges::Bridges &b)
 
void registerKeyListener (KeypressListener *p)
 
void forwardKeyUp (sio::event &e)
 
void forwardKeyDown (sio::event &e)
 
 ~SocketConnection ()
 
void reconfigure_socket ()
 
void sendCredentials ()
 
void on_reconnect (unsigned, unsigned)
 
void on_socketopen (const std::string &nsp)
 
void on_connected ()
 
void on_close (sio::client::close_reason const &reason)
 
void on_socketerror (sio::message::ptr const &message)
 
void on_fail ()
 
void on_announcement (std::string const &name, sio::message::ptr const &data, bool isAck, sio::message::list &ack_resp)
 
void wait_on_connection ()
 
void sendDataToServer (const GameGrid &gg)
 
void sendSceneDataToServer (const Scene &s)
 

Constructor & Destructor Documentation

◆ SocketConnection()

bridges::game::SocketConnection::SocketConnection ( bridges::Bridges b)
inline

◆ ~SocketConnection()

bridges::game::SocketConnection::~SocketConnection ( )
inline

Member Function Documentation

◆ forwardKeyDown()

void bridges::game::SocketConnection::forwardKeyDown ( sio::event &  e)
inline

◆ forwardKeyUp()

void bridges::game::SocketConnection::forwardKeyUp ( sio::event &  e)
inline

◆ on_announcement()

void bridges::game::SocketConnection::on_announcement ( std::string const &  name,
sio::message::ptr const &  data,
bool  isAck,
sio::message::list &  ack_resp 
)
inline

◆ on_close()

void bridges::game::SocketConnection::on_close ( sio::client::close_reason const &  reason)
inline

◆ on_connected()

void bridges::game::SocketConnection::on_connected ( )
inline

◆ on_fail()

void bridges::game::SocketConnection::on_fail ( )
inline

◆ on_reconnect()

void bridges::game::SocketConnection::on_reconnect ( unsigned  ,
unsigned   
)
inline

◆ on_socketerror()

void bridges::game::SocketConnection::on_socketerror ( sio::message::ptr const &  message)
inline

◆ on_socketopen()

void bridges::game::SocketConnection::on_socketopen ( const std::string &  nsp)
inline

◆ reconfigure_socket()

void bridges::game::SocketConnection::reconfigure_socket ( )
inline

◆ registerKeyListener()

void bridges::game::SocketConnection::registerKeyListener ( KeypressListener p)
inline

◆ sendCredentials()

void bridges::game::SocketConnection::sendCredentials ( )
inline

◆ sendDataToServer()

void bridges::game::SocketConnection::sendDataToServer ( const GameGrid gg)
inline

◆ sendSceneDataToServer()

void bridges::game::SocketConnection::sendSceneDataToServer ( const Scene s)
inline

◆ wait_on_connection()

void bridges::game::SocketConnection::wait_on_connection ( )
inline

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