Pyrogenesis  trunk
Classes | Variables
NetSession.h File Reference

Network client/server sessions. More...

#include "network/fsm.h"
#include "network/NetFileTransfer.h"
#include "network/NetHost.h"
#include "ps/CStr.h"
#include "scriptinterface/ScriptVal.h"
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...
 

Variables

const u32 NETWORK_WARNING_TIMEOUT
 Report the peer if we didn't receive a packet after this time (milliseconds). More...
 
const u32 MAXIMUM_HOST_TIMEOUT
 Maximum timeout of the local client of the host (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.

Variable Documentation

const u32 MAXIMUM_HOST_TIMEOUT

Maximum timeout of the local client of the host (milliseconds).

const u32 NETWORK_WARNING_TIMEOUT

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