Pyrogenesis  trunk
Classes | Typedefs | Enumerations
NetHost.h File Reference

Various declarations shared by networking code. More...

#include "ps/CStr.h"
#include <map>
Include dependency graph for NetHost.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PlayerAssignment
 
class  CNetHost
 

Typedefs

typedef struct _ENetPeer ENetPeer
 
typedef struct _ENetPacket ENetPacket
 
typedef struct _ENetHost ENetHost
 
typedef std::map< CStr, PlayerAssignmentPlayerAssignmentMap
 

Enumerations

enum  NetDisconnectReason {
  NDR_UNKNOWN = 0, NDR_SERVER_SHUTDOWN, NDR_INCORRECT_PROTOCOL_VERSION, NDR_SERVER_LOADING,
  NDR_SERVER_ALREADY_IN_GAME, NDR_KICKED, NDR_BANNED, NDR_PLAYERNAME_IN_USE,
  NDR_SERVER_FULL, NDR_PLAYERGUID_IN_USE
}
 Reasons sent by server to clients in disconnection messages. More...
 

Detailed Description

Various declarations shared by networking code.

Typedef Documentation

typedef struct _ENetHost ENetHost
typedef struct _ENetPacket ENetPacket
typedef struct _ENetPeer ENetPeer
typedef std::map<CStr, PlayerAssignment> PlayerAssignmentMap

Enumeration Type Documentation

Reasons sent by server to clients in disconnection messages.

Must be kept in sync with binaries/data/mods/public/gui/common/network.js

Enumerator
NDR_UNKNOWN 
NDR_SERVER_SHUTDOWN 
NDR_INCORRECT_PROTOCOL_VERSION 
NDR_SERVER_LOADING 
NDR_SERVER_ALREADY_IN_GAME 
NDR_KICKED 
NDR_BANNED 
NDR_PLAYERNAME_IN_USE 
NDR_SERVER_FULL 
NDR_PLAYERGUID_IN_USE