Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::OPCodes Class Reference

#include <OPCodesTpl.h>

+ Inheritance diagram for Divide::OPCodes:

Public Types

using ValueType = int32_t
 

Static Public Member Functions

static constexpr ValueType OPCODE_ID (const ValueType index)
 

Static Public Attributes

static const ValueType MSG_NOP = 0x000
 
static const ValueType MSG_HEARTBEAT = 0x001
 
static const ValueType SMSG_SEND_FILE = 0x002
 
static const ValueType SMSG_DISCONNECT = 0x003
 
static const ValueType CMSG_REQUEST_DISCONNECT = 0x004
 
static const ValueType CMSG_ENTITY_UPDATE = 0x005
 
static const ValueType CMSG_PING = 0x006
 
static const ValueType SMSG_PONG = 0x007
 
static const ValueType FIRST_FREE_OPCODE = SMSG_PONG
 

Detailed Description

Packet handling requires OPCodes to be defined. Use the following num structure to define them in each app:

Definition at line 13 of file OPCodesTpl.h.

Member Typedef Documentation

◆ ValueType

using Divide::OPCodes::ValueType = int32_t

Definition at line 15 of file OPCodesTpl.h.

Member Function Documentation

◆ OPCODE_ID()

static constexpr ValueType Divide::OPCodes::OPCODE_ID ( const ValueType  index)
inlinestaticconstexpr

Definition at line 28 of file OPCodesTpl.h.

Member Data Documentation

◆ CMSG_ENTITY_UPDATE

const ValueType Divide::OPCodes::CMSG_ENTITY_UPDATE = 0x005
static

Definition at line 22 of file OPCodesTpl.h.

◆ CMSG_PING

const ValueType Divide::OPCodes::CMSG_PING = 0x006
static

Definition at line 23 of file OPCodesTpl.h.

◆ CMSG_REQUEST_DISCONNECT

const ValueType Divide::OPCodes::CMSG_REQUEST_DISCONNECT = 0x004
static

Definition at line 21 of file OPCodesTpl.h.

◆ FIRST_FREE_OPCODE

const ValueType Divide::OPCodes::FIRST_FREE_OPCODE = SMSG_PONG
static

Definition at line 26 of file OPCodesTpl.h.

◆ MSG_HEARTBEAT

const ValueType Divide::OPCodes::MSG_HEARTBEAT = 0x001
static

Definition at line 18 of file OPCodesTpl.h.

◆ MSG_NOP

const ValueType Divide::OPCodes::MSG_NOP = 0x000
static

Definition at line 17 of file OPCodesTpl.h.

◆ SMSG_DISCONNECT

const ValueType Divide::OPCodes::SMSG_DISCONNECT = 0x003
static

Definition at line 20 of file OPCodesTpl.h.

◆ SMSG_PONG

const ValueType Divide::OPCodes::SMSG_PONG = 0x007
static

Definition at line 24 of file OPCodesTpl.h.

◆ SMSG_SEND_FILE

const ValueType Divide::OPCodes::SMSG_SEND_FILE = 0x002
static

Definition at line 19 of file OPCodesTpl.h.


The documentation for this class was generated from the following file: