PlayerLink::Server::GameServer
A GameServer object which is used to host a game or lobby. It uses three threads to efficiently do this; An accept thread to allow new players to join, a read thread to read packets sent by players to the server and a write thread to relay those messages to the other players.
#include <GameServer.h>
Public Functions
Name | |
---|---|
GameServer() Constructs a GameServer. |
|
~GameServer() | |
void | start(std::string name) Starts the GameServer. |
Public Functions Documentation
function GameServer
GameServer()
Constructs a GameServer.
Return:
function ~GameServer
~GameServer()
function start
void start(
std::string name
)
Starts the GameServer.
Parameters:
- name
Updated on 21 January 2021 at 19:59:39 UTC