Network code documentation for my turn-based game 1.0
Loading...
Searching...
No Matches
Public Attributes | List of all members
ClientData Struct Reference

ClientData is a struct which contains the username of a client and its port number. It is used by the Lobby class to provide an easy way to differentiate the clients in a game and facilitate the packet communications between them. More...

#include <lobby.h>

Public Attributes

std::string username {}
 
Port port = 0
 

Detailed Description

ClientData is a struct which contains the username of a client and its port number. It is used by the Lobby class to provide an easy way to differentiate the clients in a game and facilitate the packet communications between them.

Member Data Documentation

◆ port

Port ClientData::port = 0

◆ username

std::string ClientData::username {}

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