Symphony Of Empires
Eng3D::Networking::ServerClient Class Reference

#include <network.hpp>

Public Member Functions

 ServerClient ()=default
 
 ~ServerClient ()
 
int try_connect (int fd)
 
void flush_packets ()
 TODO: flush packets. More...
 
bool has_pending ()
 

Public Attributes

std::atomic< bool > is_connected
 
tbb::concurrent_bounded_queue< Eng3D::Networking::Packetpackets
 
std::string username
 
std::unique_ptr< std::thread > thread
 

Detailed Description

Definition at line 141 of file network.hpp.

Constructor & Destructor Documentation

◆ ServerClient()

Eng3D::Networking::ServerClient::ServerClient ( )
default

◆ ~ServerClient()

Eng3D::Networking::ServerClient::~ServerClient ( )

Definition at line 210 of file network.cpp.

Member Function Documentation

◆ flush_packets()

void Eng3D::Networking::ServerClient::flush_packets ( )

TODO: flush packets.

Definition at line 230 of file network.cpp.

◆ has_pending()

bool Eng3D::Networking::ServerClient::has_pending ( )

Definition at line 234 of file network.cpp.

Here is the call graph for this function:

◆ try_connect()

int Eng3D::Networking::ServerClient::try_connect ( int  fd)

Definition at line 215 of file network.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ is_connected

std::atomic<bool> Eng3D::Networking::ServerClient::is_connected

Definition at line 151 of file network.hpp.

◆ packets

tbb::concurrent_bounded_queue<Eng3D::Networking::Packet> Eng3D::Networking::ServerClient::packets

Definition at line 152 of file network.hpp.

◆ thread

std::unique_ptr<std::thread> Eng3D::Networking::ServerClient::thread

Definition at line 154 of file network.hpp.

◆ username

std::string Eng3D::Networking::ServerClient::username

Definition at line 153 of file network.hpp.


The documentation for this class was generated from the following files: