Diarkis C++Client Library API Document
protocol.h File Reference
#include <stdint.h>
Include dependency graph for protocol.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 CustomCommands
 

Enumerations

enum  ConnectState : uint8_t {
  NOT_CONNECTED = 0, ROOM_FIND, ROOM_NOT_FIND, UDP_JOINING,
  TCP_JOINING, UDP_JOIN, TCP_JOIN, LEAVE,
  FAIL_JOIN, MIGRATE
}
 connection state More...
 
enum  MatchMakerSearchStatus : uint8_t { MMS_SEARCH_NOT_RETURN = 0, MMS_SEARCH_SUCCESS, MMS_SEARCH_FAIL }
 MatchMaker search status. More...
 
enum  DataType : uint8_t {
  DT_POSITION_SYNC = 0, DT_REPLICATION, DT_ACTOR_MANAGEMENT, DT_CUSTOM_MESSAGE,
  DT_PROFILE_CHECK = 10
}
 Data type of Room::BroadcastTo,MessageTo, Field::SyncInt,Sync, SyncInt P2P::Send, Group::BroadcastTo, MatchMaker::Sync. More...
 
enum  ProfileType : uint8_t { PT_NONE = 0, PT_SEND, PT_SENDCREATE, PT_SENDCREATESERVER }
 Profile type. More...
 

Functions

const char * TranslateCommand (uint8_t version, uint16_t command)
 

Variables

constexpr uint16_t CustomCommands::Get_ = 200
 
constexpr uint16_t CustomCommands::Set_ = 300
 
constexpr uint16_t CustomCommands::FieldFindUsers = 10003
 
constexpr uint16_t CustomCommands::LargeBytes = 500
 
constexpr uint16_t CustomCommands::LargeFile = 501
 
constexpr uint16_t CustomCommands::TcpHey = 10000
 
constexpr uint16_t CustomCommands::UdpThrottle = 613
 
constexpr uint16_t CustomCommands::UdpHello = 10000
 
constexpr uint16_t CustomCommands::UdpHello2 = 20000
 
constexpr uint16_t CustomCommands::TicketMemberLeave = 1011
 

Enumeration Type Documentation

◆ ConnectState

enum ConnectState : uint8_t

connection state

Enumerator
NOT_CONNECTED 

Before connection.

ROOM_FIND 

Room found by FindByType.

ROOM_NOT_FIND 

Room not found by FindByType.

UDP_JOINING 

Connecting by UDP.

TCP_JOINING 

Connecting by TCP.

UDP_JOIN 

Connected by UDP.

TCP_JOIN 

Connected by TCP.

LEAVE 

Leaving.

FAIL_JOIN 

Failed to join.

MIGRATE 

Room Move.

◆ MatchMakerSearchStatus

enum MatchMakerSearchStatus : uint8_t

MatchMaker search status.

Enumerator
MMS_SEARCH_NOT_RETURN 

Search Results Not returned.

MMS_SEARCH_SUCCESS 

Search Succeeded.

MMS_SEARCH_FAIL 

Search Failed.

◆ DataType

enum DataType : uint8_t

Data type of Room::BroadcastTo,MessageTo, Field::SyncInt,Sync, SyncInt P2P::Send, Group::BroadcastTo, MatchMaker::Sync.

Enumerator
DT_POSITION_SYNC 

Location Synchronization Message.

DT_REPLICATION 

Replication Message.

DT_ACTOR_MANAGEMENT 

Actor instance management information.

DT_CUSTOM_MESSAGE 

Custom Messages.

DT_PROFILE_CHECK 

Messages for profiles.

◆ ProfileType

enum ProfileType : uint8_t

Profile type.

Enumerator
PT_NONE 

Messages for profiles.

PT_SEND 

Messages for profiles.

PT_SENDCREATE 

Including location information, start of data creation, and transmission time (16 bytes)

PT_SENDCREATESERVER 

Including data creation start, transmission, and server processing time (24 bytes) ⇒ Not supported.

Function Documentation

◆ TranslateCommand()

const char* TranslateCommand ( uint8_t  version,
uint16_t  command 
)
Here is the call graph for this function:
Here is the caller graph for this function: