SLikeNet 0.1.3

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MessageIdentifiers.h
Go to the documentation of this file.
1 /*
2 * Original work: Copyright (c) 2014, Oculus VR, Inc.
3 * All rights reserved.
4 *
5 * This source code is licensed under the BSD-style license found in the
6 * RakNet License.txt file in the licenses directory of this source tree. An additional grant
7 * of patent rights can be found in the RakNet Patents.txt file in the same directory.
8 *
9 *
10 * Modified work: Copyright (c) 2017, SLikeSoft UG (haftungsbeschränkt)
11 *
12 * This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
13 * license found in the license.txt file in the root directory of this source tree.
14 */
15
19
20
21 #ifndef __MESSAGE_IDENTIFIERS_H
22 #define __MESSAGE_IDENTIFIERS_H
23
24 #if defined(RAKNET_USE_CUSTOM_PACKET_IDS)
25 #include "CustomPacketIdentifiers.h"
26 #else
27
28 enum OutOfBandIdentifiers
29 {
30 ID_NAT_ESTABLISH_UNIDIRECTIONAL,
31 ID_NAT_ESTABLISH_BIDIRECTIONAL,
32 ID_NAT_TYPE_DETECT,
33 ID_ROUTER_2_REPLY_TO_SENDER_PORT,
34 ID_ROUTER_2_REPLY_TO_SPECIFIED_PORT,
35 ID_ROUTER_2_MINI_PUNCH_REPLY,
36 ID_ROUTER_2_MINI_PUNCH_REPLY_BOUNCE,
37 ID_XBOX_360_VOICE,
38 ID_XBOX_360_GET_NETWORK_ROOM,
39 ID_XBOX_360_RETURN_NETWORK_ROOM,
40 ID_NAT_PING,
41 ID_NAT_PONG,
42 };
43
56 enum DefaultMessageIDTypes
57 {
58 //
59 // RESERVED TYPES - DO NOT CHANGE THESE
60 // All types from RakPeer
61 //
64 ID_CONNECTED_PING,
66 ID_UNCONNECTED_PING,
68 ID_UNCONNECTED_PING_OPEN_CONNECTIONS,
70 ID_CONNECTED_PONG,
72 ID_DETECT_LOST_CONNECTIONS,
75 ID_OPEN_CONNECTION_REQUEST_1,
78 ID_OPEN_CONNECTION_REPLY_1,
82 ID_OPEN_CONNECTION_REQUEST_2,
84 ID_OPEN_CONNECTION_REPLY_2,
86 ID_CONNECTION_REQUEST,
88 ID_REMOTE_SYSTEM_REQUIRES_PUBLIC_KEY,
90 ID_OUR_SYSTEM_REQUIRES_SECURITY,
92 ID_PUBLIC_KEY_MISMATCH,
95 ID_OUT_OF_BAND_INTERNAL,
101 ID_SND_RECEIPT_ACKED,
108 ID_SND_RECEIPT_LOSS,
109
110
111 //
112 // USER TYPES - DO NOT CHANGE THESE
113 //
114
116 ID_CONNECTION_REQUEST_ACCEPTED,
118 ID_CONNECTION_ATTEMPT_FAILED,
120 ID_ALREADY_CONNECTED,
122 ID_NEW_INCOMING_CONNECTION,
124 ID_NO_FREE_INCOMING_CONNECTIONS,
127 ID_DISCONNECTION_NOTIFICATION,
130 ID_CONNECTION_LOST,
132 ID_CONNECTION_BANNED,
134 ID_INVALID_PASSWORD,
135 // RAKNET_PROTOCOL_VERSION in version.h does not match on the remote system what we have on our system
136 // This means the two systems cannot communicate.
137 // The 2nd byte of the message contains the value of RAKNET_PROTOCOL_VERSION for the remote system
138 ID_INCOMPATIBLE_PROTOCOL_VERSION,
139 // Means that this IP address connected recently, and can't connect again as a security measure. See
141 ID_IP_RECENTLY_CONNECTED,
144 ID_TIMESTAMP,
148 ID_UNCONNECTED_PONG,
151 ID_ADVERTISE_SYSTEM,
152 // RakPeer - Downloading a large message. Format is ID_DOWNLOAD_PROGRESS (MessageID), partCount (unsigned int),
156 ID_DOWNLOAD_PROGRESS,
157
160 ID_REMOTE_DISCONNECTION_NOTIFICATION,
163 ID_REMOTE_CONNECTION_LOST,
165 ID_REMOTE_NEW_INCOMING_CONNECTION,
166
168 ID_FILE_LIST_TRANSFER_HEADER,
170 ID_FILE_LIST_TRANSFER_FILE,
171 // Ack for reference push, to send more of the file
172 ID_FILE_LIST_REFERENCE_PUSH_ACK,
173
175 ID_DDT_DOWNLOAD_REQUEST,
176
178 ID_TRANSPORT_STRING,
179
181 ID_REPLICA_MANAGER_CONSTRUCTION,
183 ID_REPLICA_MANAGER_SCOPE_CHANGE,
185 ID_REPLICA_MANAGER_SERIALIZE,
187 ID_REPLICA_MANAGER_DOWNLOAD_STARTED,
189 ID_REPLICA_MANAGER_DOWNLOAD_COMPLETE,
190
192 ID_RAKVOICE_OPEN_CHANNEL_REQUEST,
194 ID_RAKVOICE_OPEN_CHANNEL_REPLY,
196 ID_RAKVOICE_CLOSE_CHANNEL,
198 ID_RAKVOICE_DATA,
199
201 ID_AUTOPATCHER_GET_CHANGELIST_SINCE_DATE,
203 ID_AUTOPATCHER_CREATION_LIST,
205 ID_AUTOPATCHER_DELETION_LIST,
207 ID_AUTOPATCHER_GET_PATCH,
209 ID_AUTOPATCHER_PATCH_LIST,
211 ID_AUTOPATCHER_REPOSITORY_FATAL_ERROR,
213 ID_AUTOPATCHER_CANNOT_DOWNLOAD_ORIGINAL_UNMODIFIED_FILES,
215 ID_AUTOPATCHER_FINISHED_INTERNAL,
216 ID_AUTOPATCHER_FINISHED,
218 ID_AUTOPATCHER_RESTART_APPLICATION,
219
221 ID_NAT_PUNCHTHROUGH_REQUEST,
223 //ID_NAT_GROUP_PUNCHTHROUGH_REQUEST,
225 //ID_NAT_GROUP_PUNCHTHROUGH_REPLY,
227 ID_NAT_CONNECT_AT_TIME,
229 ID_NAT_GET_MOST_RECENT_PORT,
231 ID_NAT_CLIENT_READY,
233 //ID_NAT_GROUP_PUNCHTHROUGH_FAILURE_NOTIFICATION,
234
237 ID_NAT_TARGET_NOT_CONNECTED,
240 ID_NAT_TARGET_UNRESPONSIVE,
244 ID_NAT_CONNECTION_TO_TARGET_LOST,
247 ID_NAT_ALREADY_IN_PROGRESS,
250 ID_NAT_PUNCHTHROUGH_FAILED,
253 ID_NAT_PUNCHTHROUGH_SUCCEEDED,
254
257 ID_READY_EVENT_SET,
260 ID_READY_EVENT_UNSET,
263 ID_READY_EVENT_ALL_SET,
266 ID_READY_EVENT_QUERY,
267
269 ID_LOBBY_GENERAL,
270
271 // RPC3, RPC4 error
272 ID_RPC_REMOTE_ERROR,
274 ID_RPC_PLUGIN,
275
277 ID_FILE_LIST_REFERENCE_PUSH,
279 ID_READY_EVENT_FORCE_ALL_SET,
280
282 ID_ROOMS_EXECUTE_FUNC,
283 ID_ROOMS_LOGON_STATUS,
284 ID_ROOMS_HANDLE_CHANGE,
285
287 ID_LOBBY2_SEND_MESSAGE,
288 ID_LOBBY2_SERVER_ERROR,
289
293 ID_FCM2_NEW_HOST,
295 ID_FCM2_REQUEST_FCMGUID,
297 ID_FCM2_RESPOND_CONNECTION_COUNT,
299 ID_FCM2_INFORM_FCMGUID,
301 ID_FCM2_UPDATE_MIN_TOTAL_CONNECTION_COUNT,
310 ID_FCM2_VERIFIED_JOIN_START,
312 ID_FCM2_VERIFIED_JOIN_CAPABLE,
318 ID_FCM2_VERIFIED_JOIN_FAILED,
324 ID_FCM2_VERIFIED_JOIN_ACCEPTED,
331 ID_FCM2_VERIFIED_JOIN_REJECTED,
332
334 ID_UDP_PROXY_GENERAL,
335
337 ID_SQLite3_EXEC,
339 ID_SQLite3_UNKNOWN_DB,
341 ID_SQLLITE_LOGGER,
342
344 ID_NAT_TYPE_DETECTION_REQUEST,
346 ID_NAT_TYPE_DETECTION_RESULT,
347
349 ID_ROUTER_2_INTERNAL,
352 ID_ROUTER_2_FORWARDING_NO_PATH,
366 ID_ROUTER_2_FORWARDING_ESTABLISHED,
369 ID_ROUTER_2_REROUTED,
370
372 ID_TEAM_BALANCER_INTERNAL,
376 ID_TEAM_BALANCER_REQUESTED_TEAM_FULL,
380 ID_TEAM_BALANCER_REQUESTED_TEAM_LOCKED,
381 ID_TEAM_BALANCER_TEAM_REQUESTED_CANCELLED,
383 ID_TEAM_BALANCER_TEAM_ASSIGNED,
384
386 ID_LIGHTSPEED_INTEGRATION,
387
389 ID_XBOX_LOBBY,
390
394 ID_TWO_WAY_AUTHENTICATION_INCOMING_CHALLENGE_SUCCESS,
395 ID_TWO_WAY_AUTHENTICATION_OUTGOING_CHALLENGE_SUCCESS,
398 ID_TWO_WAY_AUTHENTICATION_INCOMING_CHALLENGE_FAILURE,
402 ID_TWO_WAY_AUTHENTICATION_OUTGOING_CHALLENGE_FAILURE,
406 ID_TWO_WAY_AUTHENTICATION_OUTGOING_CHALLENGE_TIMEOUT,
408 ID_TWO_WAY_AUTHENTICATION_NEGOTIATION,
409
411 ID_CLOUD_POST_REQUEST,
412 ID_CLOUD_RELEASE_REQUEST,
413 ID_CLOUD_GET_REQUEST,
414 ID_CLOUD_GET_RESPONSE,
415 ID_CLOUD_UNSUBSCRIBE_REQUEST,
416 ID_CLOUD_SERVER_TO_SERVER_COMMAND,
417 ID_CLOUD_SUBSCRIPTION_NOTIFICATION,
418
419 // LibVoice
420 ID_LIB_VOICE,
421
422 ID_RELAY_PLUGIN,
423 ID_NAT_REQUEST_BOUND_ADDRESSES,
424 ID_NAT_RESPOND_BOUND_ADDRESSES,
425 ID_FCM2_UPDATE_USER_CONTEXT,
426 ID_RESERVED_3,
427 ID_RESERVED_4,
428 ID_RESERVED_5,
429 ID_RESERVED_6,
430 ID_RESERVED_7,
431 ID_RESERVED_8,
432 ID_RESERVED_9,
433
434 // For the user to use. Start your first enumeration at this value.
435 ID_USER_PACKET_ENUM
436 //-------------------------------------------------------------------------------------------------------------
437
438 };
439
440 #endif // RAKNET_USE_CUSTOM_PACKET_IDS
441
442 #endif