network::Client
#include <NetworkClient.hpp>
Public Functions
Detailed Description
class network::Client;
Client class is one of the big parts in the game. It represents the way for the gamer to communicate with the servers by sending and receiving some message. To understand those messages in a more specifically way, just refer to the RFC. Client is able to join a specific server by a given ip & port, communicating with it using sockets & buffers
Public Functions Documentation
function ~Client
inline ~Client()
Default destructor of the Client Class
function setHost
static inline void setHost(
const std::string & host
)
Getters & Setters of client Class
function setPort
static inline void setPort(
const std::string & port
)
function getOutgoingMessages
static inline LockedQueue< Message > & getOutgoingMessages()
function getReceivedMessages
static inline LockedQueue< Message > & getReceivedMessages()
function getIsConnected
static inline bool getIsConnected()
function setIsConnected
static inline void setIsConnected()
function connect
static inline void connect()
Static methods used to connect to the given server (host, port) using udp::v4
function disconnect
static inline void disconnect()
Updated on 2022-11-13 at 17:21:37 +0100
Last updated