29#define PS_PROTOCOL_MAGIC 0x5073013f
30#define PS_PROTOCOL_MAGIC_RESPONSE 0x50630121
31#define PS_PROTOCOL_VERSION 0x01010018
32#define PS_DEFAULT_PORT 0x5073
35#define PS_NETWORK_FLAG_REQUIRE_LOBBYAUTH 0x1
98#define ALLNETMSGS_DONT_CREATE_NMTS
99#define START_NMT_CLASS_(_nm, _message) START_NMT_CLASS(C##_nm##Message, _message)
100#define DERIVE_NMT_CLASS_(_base, _nm, _message) START_NMT_CLASS_DERIVED(C ## _base ## Message, C ## _nm ## Message, _message)
105 NMT_FIELD_INT(m_Magic,
u32, 4)
106 NMT_FIELD_INT(m_ProtocolVersion,
u32, 4)
107 NMT_FIELD_INT(m_SoftwareVersion,
u32, 4)
111 NMT_FIELD_INT(m_MagicResponse,
u32, 4)
112 NMT_FIELD_INT(m_ProtocolVersion,
u32, 4)
113 NMT_FIELD_INT(m_SoftwareVersion,
u32, 4)
117 NMT_FIELD_INT(m_UseProtocolVersion,
u32, 4)
118 NMT_FIELD_INT(m_Flags,
u32, 4)
119 NMT_FIELD(CStr, m_GUID)
123 NMT_FIELD(CStrW, m_Name)
124 NMT_FIELD_SECRET(CStr, m_Password)
125 NMT_FIELD_SECRET(CStr, m_ControllerSecret)
129 NMT_FIELD_INT(m_Code,
u32, 4)
130 NMT_FIELD_INT(m_HostID,
u32, 2)
131 NMT_FIELD_INT(m_IsController,
u8, 1)
132 NMT_FIELD(CStrW, m_Message)
136 NMT_FIELD(CStr, m_GUID)
137 NMT_FIELD(CStrW, m_Message)
141 NMT_FIELD(CStr, m_GUID)
142 NMT_FIELD_INT(m_Status,
u8, 1)
149 NMT_START_ARRAY(m_Hosts)
150 NMT_FIELD(CStr, m_GUID)
151 NMT_FIELD(CStrW, m_Name)
152 NMT_FIELD_INT(m_PlayerID,
i8, 1)
153 NMT_FIELD_INT(m_Status,
u8, 1)
158 NMT_FIELD_INT(m_RequestID,
u32, 4)
162 NMT_FIELD_INT(m_RequestID,
u32, 4)
163 NMT_FIELD_INT(m_Length,
u32, 4)
167 NMT_FIELD_INT(m_RequestID,
u32, 4)
168 NMT_FIELD(CStr, m_Data)
172 NMT_FIELD_INT(m_RequestID,
u32, 4)
173 NMT_FIELD_INT(m_NumPackets,
u32, 4)
177 NMT_FIELD(CStr, m_InitAttributes)
181 NMT_FIELD(CStr, m_GUID)
185 NMT_FIELD(CStrW, m_Name)
186 NMT_FIELD_INT(m_Ban,
u8, 1)
190 NMT_FIELD(CStr, m_GUID)
191 NMT_FIELD_INT(m_LastReceivedTime,
u32, 4)
195 NMT_START_ARRAY(m_Clients)
196 NMT_FIELD(CStr, m_GUID)
197 NMT_FIELD_INT(m_MeanRTT,
u32, 4)
202 NMT_START_ARRAY(m_Clients)
203 NMT_FIELD(CStr, m_GUID)
208 NMT_FIELD(CStr, m_GUID)
209 NMT_FIELD_INT(m_Pause,
u8, 1)
213 NMT_FIELD_INT(m_CurrentTurn,
u32, 4)
217 NMT_FIELD(CStr, m_InitAttributes)
221 NMT_FIELD_INT(m_Turn,
u32, 4)
222 NMT_FIELD_INT(m_TurnLength,
u32, 2)
226 NMT_FIELD_INT(m_Turn,
u32, 4)
227 NMT_FIELD(CStr, m_Hash)
231 NMT_FIELD_INT(m_Turn,
u32, 4)
232 NMT_FIELD(CStr, m_HashExpected)
233 NMT_START_ARRAY(m_PlayerNames)
234 NMT_FIELD(CStrW, m_Name)
239 NMT_FIELD_INT(m_PlayerID,
i8, 1)
240 NMT_FIELD(CStr, m_GUID)
246#ifndef ALLNETMSGS_DONT_CREATE_NMTS
248# ifdef ALLNETMSGS_IMPLEMENT
249# define NMT_CREATOR_IMPLEMENT
252# define NMT_CREATE_HEADER_NAME "NetMessages.h"
AuthenticateResultCode
Definition: NetMessages.h:88
@ ARC_PASSWORD_INVALID
Definition: NetMessages.h:91
@ ARC_OK_REJOINING
Definition: NetMessages.h:90
@ ARC_OK
Definition: NetMessages.h:89
NetMessageType
Definition: NetMessages.h:42
@ NMT_SYNC_CHECK
Definition: NetMessages.h:80
@ NMT_INVALID
Definition: NetMessages.h:45
@ NMT_CLIENTS_LOADING
Definition: NetMessages.h:73
@ NMT_CLIENT_PAUSED
Definition: NetMessages.h:74
@ NMT_GAME_SETUP
Definition: NetMessages.h:57
@ NMT_REJOINED
Definition: NetMessages.h:68
@ NMT_CLIENT_HANDSHAKE
Definition: NetMessages.h:48
@ NMT_FILE_TRANSFER_DATA
Definition: NetMessages.h:63
@ NMT_END_COMMAND_BATCH
Definition: NetMessages.h:78
@ NMT_SERVER_HANDSHAKE_RESPONSE
Definition: NetMessages.h:49
@ NMT_CLIENT_TIMEOUT
Definition: NetMessages.h:71
@ NMT_FILE_TRANSFER_RESPONSE
Definition: NetMessages.h:62
@ NMT_KICKED
Definition: NetMessages.h:69
@ NMT_SYNC_ERROR
Definition: NetMessages.h:81
@ NMT_JOIN_SYNC_START
Definition: NetMessages.h:66
@ NMT_CLIENT_PERFORMANCE
Definition: NetMessages.h:72
@ NMT_PLAYER_ASSIGNMENT
Definition: NetMessages.h:59
@ NMT_FILE_TRANSFER_REQUEST
Definition: NetMessages.h:61
@ NMT_AUTHENTICATE_RESULT
Definition: NetMessages.h:52
@ NMT_CLEAR_ALL_READY
Definition: NetMessages.h:56
@ NMT_LOADED_GAME
Definition: NetMessages.h:76
@ NMT_AUTHENTICATE
Definition: NetMessages.h:51
@ NMT_ASSIGN_PLAYER
Definition: NetMessages.h:58
@ NMT_CHAT
Definition: NetMessages.h:54
@ NMT_CONNECT_COMPLETE
Definition: NetMessages.h:43
@ NMT_READY
Definition: NetMessages.h:55
@ NMT_SIMULATION_COMMAND
Definition: NetMessages.h:83
@ NMT_FILE_TRANSFER_ACK
Definition: NetMessages.h:64
@ NMT_SERVER_HANDSHAKE
Definition: NetMessages.h:47
@ NMT_CONNECTION_LOST
Definition: NetMessages.h:44
@ NMT_GAME_START
Definition: NetMessages.h:77
uint8_t u8
Definition: types.h:37
int8_t i8
Definition: types.h:32
uint32_t u32
Definition: types.h:39