network::Client

More...

#include <NetworkClient.hpp>

Public Functions

Name

void

setHost(const std::string & host)

void

setPort(const std::string & port)

void

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

Default destructor of the Client Class

function setHost

Getters & Setters of client Class

function setPort

function getOutgoingMessages

function getReceivedMessages

function getIsConnected

function setIsConnected

function connect

Static methods used to connect to the given server (host, port) using udp::v4

function disconnect


Updated on 2022-11-13 at 17:21:37 +0100

Last updated