network::Server
#include <Server.hpp>
Public Functions
bool
void
void
size_t
uint32_t
void
Public Functions Documentation
function ~Server
Default destructor of the server Class, stopping the ioService & make all the threads join
function hasMessages
Return: true if there are messages
This function allows us to check if the server has received messages
function sendToClient
Parameters:
message The message you want to send
clientID The id of the client you want to communicate with
Used to send a message to a client given as parameter
function sendToAll
Parameters:
message The message you want to send
Used to send a message to every available clients
function getClientCount
Return: Amount of connected clients
Get the amount of clients that are connected
function getClientIdByIndex
Parameters:
index the index for the array
Return: client ID of client n
Get the ID of client from the clients array
function start
function getOutgoingMessages
function GetReceivedMessages
Updated on 2022-11-13 at 17:21:37 +0100
Last updated