![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Network client/server sessions. More...
#include "lib/external_libraries/enet.h"#include "network/FSM.h"#include "network/NetFileTransfer.h"#include "network/NetHost.h"#include "ps/CStr.h"#include <boost/lockfree/queue.hpp>#include <atomic>

Go to the source code of this file.
Classes | |
| class | INetSession |
| Interface for sessions to which messages can be sent. More... | |
| class | CNetClientSession |
| The client end of a network session. More... | |
| class | CNetServerSession |
| The server's end of a network session. More... | |
Typedefs | |
| typedef struct _ENetHost | ENetHost |
Variables | |
| constexpr u32 | NETWORK_WARNING_TIMEOUT = 2000 |
| Report the peer if we didn't receive a packet after this time (milliseconds). More... | |
Network client/server sessions.
Each session has two classes: CNetClientSession runs on the client, and CNetServerSession runs on the server. A client runs one session at once; a server typically runs many.
| typedef struct _ENetHost ENetHost |
|
inlineconstexpr |
Report the peer if we didn't receive a packet after this time (milliseconds).