Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
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_LOBBY_AUTH_FAILED , NDR_GUID_FAILED , NDR_INCORRECT_READY_TURN_COMMANDS ,
  NDR_INCORRECT_READY_TURN_SIMULATED , NDR_SERVER_REFUSED , NDR_STUN_PORT_FAILED , NDR_STUN_ENDPOINT_FAILED
}
 Reasons sent by server to clients in disconnection messages. More...
 

Detailed Description

Various declarations shared by networking code.

Typedef Documentation

◆ ENetHost

typedef struct _ENetHost ENetHost

◆ ENetPacket

typedef struct _ENetPacket ENetPacket

◆ ENetPeer

typedef struct _ENetPeer ENetPeer

◆ PlayerAssignmentMap

typedef std::map<CStr, PlayerAssignment> PlayerAssignmentMap

Enumeration Type Documentation

◆ NetDisconnectReason

Reasons sent by server to clients in disconnection messages.

Must be kept in sync with binaries/data/mods/public/gui/common/network.js To avoid ambiguity, use a distinct reason for each callstack leading to a disconnect. NDR_UNKNOWN should remain reserved to the case where it is actually not a known disconnect by the server.

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_LOBBY_AUTH_FAILED 
NDR_GUID_FAILED 
NDR_INCORRECT_READY_TURN_COMMANDS 
NDR_INCORRECT_READY_TURN_SIMULATED 
NDR_SERVER_REFUSED 
NDR_STUN_PORT_FAILED 
NDR_STUN_ENDPOINT_FAILED