Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Enumerations
NetHost.h File Reference

Various declarations shared by networking code. More...

#include "ps/CStr.h"
#include <map>

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,
PlayerAssignment
PlayerAssignmentMap
 

Enumerations

enum  NetDisconnectReason { NDR_UNKNOWN = 0, NDR_UNEXPECTED_SHUTDOWN, NDR_INCORRECT_PROTOCOL_VERSION, NDR_SERVER_ALREADY_IN_GAME }
 Reasons sent by server to clients in disconnection messages. More...
 

Detailed Description

Various declarations shared by networking code.

Definition in file NetHost.h.

Typedef Documentation

typedef struct _ENetHost ENetHost

Definition at line 32 of file NetHost.h.

typedef struct _ENetPacket ENetPacket

Definition at line 31 of file NetHost.h.

typedef struct _ENetPeer ENetPeer

Definition at line 30 of file NetHost.h.

typedef std::map<CStr, PlayerAssignment> PlayerAssignmentMap

Definition at line 51 of file NetHost.h.

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_UNEXPECTED_SHUTDOWN 
NDR_INCORRECT_PROTOCOL_VERSION 
NDR_SERVER_ALREADY_IN_GAME 

Definition at line 57 of file NetHost.h.