Pyrogenesis  trunk
Classes | Typedefs | Variables
NetSession.h File Reference

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>
Include dependency graph for NetSession.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

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 Documentation

◆ ENetHost

typedef struct _ENetHost ENetHost

Variable Documentation

◆ NETWORK_WARNING_TIMEOUT

constexpr u32 NETWORK_WARNING_TIMEOUT = 2000
inline

Report the peer if we didn't receive a packet after this time (milliseconds).