Network code documentation for my turn-based game 1.0
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
packet.h File Reference
#include "types.h"
#include <SFML/Network/Packet.hpp>

Go to the source code of this file.

Classes

struct  ClientPacket
 ClientPacket is an object containing data that a client wishes to send to the server and its remote port. This struct must be used in the server side only. More...
 

Enumerations

enum class  PacketType : std::int8_t {
  kNone = 0 , KNotReady , kClientIdentification , kJoinLobby ,
  KStartGame , kNewTurn , KCueBallVelocity , kEndGame ,
  kEloUpdated
}
 

Functions

sf::Packet & operator<< (sf::Packet &packet, const PacketType &type)
 
sf::Packet & operator>> (sf::Packet &packet, PacketType &type)
 

Enumeration Type Documentation

◆ PacketType

enum class PacketType : std::int8_t
strong
Enumerator
kNone 
KNotReady 
kClientIdentification 
kJoinLobby 
KStartGame 
kNewTurn 
KCueBallVelocity 
kEndGame 
kEloUpdated 

Function Documentation

◆ operator<<()

sf::Packet & operator<< ( sf::Packet & packet,
const PacketType & type )

◆ operator>>()

sf::Packet & operator>> ( sf::Packet & packet,
PacketType & type )