Diarkis C++Client Library API Document
protocol.h
Go to the documentation of this file.
1 // © 2019-2024 Diarkis Inc. All rights reserved.
2 
3 #pragma once
4 
5 #include <stdint.h>
6 
7 const char* TranslateCommand(uint8_t version, uint16_t command);
8 
9 namespace CustomCommands
10 {
11  // Get Set
12  constexpr uint16_t Get_ = 200;
13  constexpr uint16_t Set_ = 300;
14 
15  // Field
16  constexpr uint16_t FieldFindUsers = 10003;
17 
18  // File
19  constexpr uint16_t LargeBytes = 500;
20  constexpr uint16_t LargeFile = 501;
21 
22  // TCP
23  constexpr uint16_t TcpHey = 10000;
24 
25  // UDP
26  constexpr uint16_t UdpThrottle = 613;
27  constexpr uint16_t UdpHello = 10000;
28  constexpr uint16_t UdpHello2 = 20000;
29 
30  // MatchMaker
31  constexpr uint16_t TicketMemberLeave = 1011;
32 }
33 
40 enum ConnectState : uint8_t
41 {
112 };
113 
121 {
143 };
144 
151 enum DataType : uint8_t
152 {
160 
168 
176 
191 };
192 
199 enum ProfileType : uint8_t
200 {
207  PT_NONE = 0,
228 };
229 
Diarkis::Commands
Definition: commands.h:9
TranslateCommand
const char * TranslateCommand(uint8_t version, uint16_t command)
Definition: protocol.cpp:11
TCP_JOIN
@ TCP_JOIN
Connected by TCP.
Definition: protocol.h:90
DT_ACTOR_MANAGEMENT
@ DT_ACTOR_MANAGEMENT
Actor instance management information.
Definition: protocol.h:175
PT_SENDCREATESERVER
@ PT_SENDCREATESERVER
Including data creation start, transmission, and server processing time (24 bytes) ⇒ Not supported.
Definition: protocol.h:227
TCP_JOINING
@ TCP_JOINING
Connecting by TCP.
Definition: protocol.h:76
DT_CUSTOM_MESSAGE
@ DT_CUSTOM_MESSAGE
Custom Messages.
Definition: protocol.h:183
PT_SEND
@ PT_SEND
Messages for profiles.
Definition: protocol.h:214
MIGRATE
@ MIGRATE
Room Move.
Definition: protocol.h:111
CustomCommands
Definition: protocol.h:9
MatchMakerSearchStatus
MatchMakerSearchStatus
MatchMaker search status.
Definition: protocol.h:120
DT_REPLICATION
@ DT_REPLICATION
Replication Message.
Definition: protocol.h:167
ROOM_NOT_FIND
@ ROOM_NOT_FIND
Room not found by FindByType.
Definition: protocol.h:62
CustomCommands::UdpHello2
constexpr uint16_t UdpHello2
Definition: protocol.h:28
UDP_JOIN
@ UDP_JOIN
Connected by UDP.
Definition: protocol.h:83
FAIL_JOIN
@ FAIL_JOIN
Failed to join.
Definition: protocol.h:104
NOT_CONNECTED
@ NOT_CONNECTED
Before connection.
Definition: protocol.h:48
ROOM_FIND
@ ROOM_FIND
Room found by FindByType.
Definition: protocol.h:55
PT_SENDCREATE
@ PT_SENDCREATE
Including location information, start of data creation, and transmission time (16 bytes)
Definition: protocol.h:220
protocol.h
PT_NONE
@ PT_NONE
Messages for profiles.
Definition: protocol.h:207
CustomCommands::LargeFile
constexpr uint16_t LargeFile
Definition: protocol.h:20
CustomCommands::Set_
constexpr uint16_t Set_
Definition: protocol.h:13
CustomCommands::LargeBytes
constexpr uint16_t LargeBytes
Definition: protocol.h:19
ConnectState
ConnectState
connection state
Definition: protocol.h:40
CustomCommands::UdpThrottle
constexpr uint16_t UdpThrottle
Definition: protocol.h:26
CustomCommands::UdpHello
constexpr uint16_t UdpHello
Definition: protocol.h:27
Diarkis::Commands::DiarkisTranslateCommand
const DIARKIS_EXPORT char * DiarkisTranslateCommand(uint16_t command)
DataType
DataType
Data type of Room::BroadcastTo,MessageTo, Field::SyncInt,Sync, SyncInt P2P::Send, Group::BroadcastTo,...
Definition: protocol.h:151
CustomCommands::TicketMemberLeave
constexpr uint16_t TicketMemberLeave
Definition: protocol.h:31
MMS_SEARCH_FAIL
@ MMS_SEARCH_FAIL
Search Failed.
Definition: protocol.h:142
ProfileType
ProfileType
Profile type.
Definition: protocol.h:199
DT_POSITION_SYNC
@ DT_POSITION_SYNC
Location Synchronization Message.
Definition: protocol.h:159
UDP_JOINING
@ UDP_JOINING
Connecting by UDP.
Definition: protocol.h:69
commands.h
MMS_SEARCH_SUCCESS
@ MMS_SEARCH_SUCCESS
Search Succeeded.
Definition: protocol.h:135
CustomCommands::TcpHey
constexpr uint16_t TcpHey
Definition: protocol.h:23
CustomCommands::Get_
constexpr uint16_t Get_
Definition: protocol.h:12
LEAVE
@ LEAVE
Leaving.
Definition: protocol.h:97
MMS_SEARCH_NOT_RETURN
@ MMS_SEARCH_NOT_RETURN
Search Results Not returned.
Definition: protocol.h:128
DT_PROFILE_CHECK
@ DT_PROFILE_CHECK
Messages for profiles.
Definition: protocol.h:190
TranslateCommand
const char * TranslateCommand(uint8_t version, uint16_t command)
Definition: protocol.cpp:11
CustomCommands::FieldFindUsers
constexpr uint16_t FieldFindUsers
Definition: protocol.h:16