Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Various declarations shared by networking code. More...
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_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... | |
Various declarations shared by networking code.
typedef struct _ENetHost ENetHost |
typedef struct _ENetPacket ENetPacket |
typedef struct _ENetPeer ENetPeer |
typedef std::map<CStr, PlayerAssignment> PlayerAssignmentMap |
enum 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.