|
Symphony Of Empires
|
#include <network.hpp>

Classes | |
| class | Exception |
Public Member Functions | |
| Client (std::string host, const unsigned port) | |
| ~Client () | |
| void | do_netloop (std::function< bool()> cond, std::function< void(const Packet &packet, Eng3D::Deser::Archive &ar)> handler) |
| void | send (const Eng3D::Networking::Packet &packet) |
| int | get_fd () const |
Public Attributes | |
| tbb::concurrent_bounded_queue< Eng3D::Networking::Packet > | packets |
| std::string | username |
Protected Attributes | |
| struct sockaddr_in | addr |
| int | fd |
Definition at line 190 of file network.hpp.
| Client::Client | ( | std::string | host, |
| const unsigned | port | ||
| ) |
| Client::~Client | ( | ) |
Definition at line 415 of file network.cpp.
| void Client::do_netloop | ( | std::function< bool()> | cond, |
| std::function< void(const Packet &packet, Eng3D::Deser::Archive &ar)> | handler | ||
| ) |
Definition at line 424 of file network.cpp.


|
inline |
Definition at line 216 of file network.hpp.
|
inline |
Definition at line 212 of file network.hpp.
|
protected |
Definition at line 171 of file network.hpp.
|
protected |
Definition at line 193 of file network.hpp.
| tbb::concurrent_bounded_queue<Eng3D::Networking::Packet> Eng3D::Networking::Client::packets |
Definition at line 220 of file network.hpp.
| std::string Eng3D::Networking::Client::username |
Definition at line 221 of file network.hpp.