#include <network.hpp>
|
struct sockaddr_in | addr |
|
int | fd |
|
std::atomic< bool > | run |
|
Definition at line 157 of file network.hpp.
◆ Server()
Server::Server |
( |
unsigned |
port, |
|
|
unsigned |
max_conn |
|
) |
| |
◆ ~Server()
◆ broadcast()
This will broadcast the given packet to all clients currently on the server.
Definition at line 292 of file network.cpp.
◆ do_netloop()
void Server::do_netloop |
( |
std::function< void(int i)> |
on_wake_thread, |
|
|
int |
id |
|
) |
| |
◆ handler()
◆ on_connect()
virtual void Eng3D::Networking::Server::on_connect |
( |
int |
conn_fd, |
|
|
int |
id |
|
) |
| |
|
pure virtual |
◆ on_disconnect()
virtual void Eng3D::Networking::Server::on_disconnect |
( |
| ) |
|
|
pure virtual |
◆ addr
struct sockaddr_in Eng3D::Networking::Server::addr |
|
protected |
◆ clients
◆ fd
int Eng3D::Networking::Server::fd |
|
protected |
◆ n_clients
std::size_t Eng3D::Networking::Server::n_clients |
◆ player_count
std::size_t Eng3D::Networking::Server::player_count = 0 |
◆ run
std::atomic<bool> Eng3D::Networking::Server::run |
|
protected |
The documentation for this class was generated from the following files: