Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
NetMessages.h File Reference

The list of messages used by the network subsystem. More...

#include "ps/CStr.h"
#include "scriptinterface/ScriptTypes.h"
#include "NMTCreator.h"
Include dependency graph for NetMessages.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PS_PROTOCOL_MAGIC   0x5073013f
 
#define PS_PROTOCOL_MAGIC_RESPONSE   0x50630121
 
#define PS_PROTOCOL_VERSION   0x01010018
 
#define PS_DEFAULT_PORT   0x5073
 
#define PS_NETWORK_FLAG_REQUIRE_LOBBYAUTH   0x1
 
#define NMT_CREATE_HEADER_NAME   "NetMessages.h"
 

Enumerations

enum  NetMessageType {
  NMT_CONNECT_COMPLETE = -256 , NMT_CONNECTION_LOST , NMT_INVALID = 0 , NMT_SERVER_HANDSHAKE ,
  NMT_CLIENT_HANDSHAKE , NMT_SERVER_HANDSHAKE_RESPONSE , NMT_AUTHENTICATE , NMT_AUTHENTICATE_RESULT ,
  NMT_CHAT , NMT_READY , NMT_CLEAR_ALL_READY , NMT_GAME_SETUP ,
  NMT_ASSIGN_PLAYER , NMT_PLAYER_ASSIGNMENT , NMT_FILE_TRANSFER_REQUEST , NMT_FILE_TRANSFER_RESPONSE ,
  NMT_FILE_TRANSFER_DATA , NMT_FILE_TRANSFER_ACK , NMT_JOIN_SYNC_START , NMT_REJOINED ,
  NMT_KICKED , NMT_CLIENT_TIMEOUT , NMT_CLIENT_PERFORMANCE , NMT_CLIENTS_LOADING ,
  NMT_CLIENT_PAUSED , NMT_LOADED_GAME , NMT_GAME_START , NMT_END_COMMAND_BATCH ,
  NMT_SYNC_CHECK , NMT_SYNC_ERROR , NMT_SIMULATION_COMMAND
}
 
enum  AuthenticateResultCode { ARC_OK , ARC_OK_REJOINING , ARC_PASSWORD_INVALID }
 

Detailed Description

The list of messages used by the network subsystem.

Macro Definition Documentation

◆ NMT_CREATE_HEADER_NAME

#define NMT_CREATE_HEADER_NAME   "NetMessages.h"

◆ PS_DEFAULT_PORT

#define PS_DEFAULT_PORT   0x5073

◆ PS_NETWORK_FLAG_REQUIRE_LOBBYAUTH

#define PS_NETWORK_FLAG_REQUIRE_LOBBYAUTH   0x1

◆ PS_PROTOCOL_MAGIC

#define PS_PROTOCOL_MAGIC   0x5073013f

◆ PS_PROTOCOL_MAGIC_RESPONSE

#define PS_PROTOCOL_MAGIC_RESPONSE   0x50630121

◆ PS_PROTOCOL_VERSION

#define PS_PROTOCOL_VERSION   0x01010018

Enumeration Type Documentation

◆ AuthenticateResultCode

Enumerator
ARC_OK 
ARC_OK_REJOINING 
ARC_PASSWORD_INVALID 

◆ NetMessageType

Enumerator
NMT_CONNECT_COMPLETE 
NMT_CONNECTION_LOST 
NMT_INVALID 
NMT_SERVER_HANDSHAKE 
NMT_CLIENT_HANDSHAKE 
NMT_SERVER_HANDSHAKE_RESPONSE 
NMT_AUTHENTICATE 
NMT_AUTHENTICATE_RESULT 
NMT_CHAT 
NMT_READY 
NMT_CLEAR_ALL_READY 
NMT_GAME_SETUP 
NMT_ASSIGN_PLAYER 
NMT_PLAYER_ASSIGNMENT 
NMT_FILE_TRANSFER_REQUEST 
NMT_FILE_TRANSFER_RESPONSE 
NMT_FILE_TRANSFER_DATA 
NMT_FILE_TRANSFER_ACK 
NMT_JOIN_SYNC_START 
NMT_REJOINED 
NMT_KICKED 
NMT_CLIENT_TIMEOUT 
NMT_CLIENT_PERFORMANCE 
NMT_CLIENTS_LOADING 
NMT_CLIENT_PAUSED 
NMT_LOADED_GAME 
NMT_GAME_START 
NMT_END_COMMAND_BATCH 
NMT_SYNC_CHECK 
NMT_SYNC_ERROR 
NMT_SIMULATION_COMMAND