feat: update PacketType enum and add PacketVersions for enhanced protocol handling
This commit is contained in:
@@ -14,19 +14,37 @@ namespace Overte {
|
|||||||
// Packet types from Overte protocol
|
// Packet types from Overte protocol
|
||||||
enum class PacketType : uint8_t {
|
enum class PacketType : uint8_t {
|
||||||
Unknown = 0,
|
Unknown = 0,
|
||||||
Ping = 1,
|
DomainConnectRequestPending = 1,
|
||||||
PingReply = 2,
|
DomainList = 2,
|
||||||
DomainList = 3,
|
Ping = 3,
|
||||||
DomainListRequest = 4,
|
PingReply = 4,
|
||||||
DomainConnectionDenied = 6,
|
KillAvatar = 5,
|
||||||
DomainServerRequireDTLS = 7,
|
AvatarData = 6,
|
||||||
DomainConnectRequest = 8,
|
InjectAudio = 7,
|
||||||
DomainServerPathQuery = 9,
|
MixedAudio = 8,
|
||||||
DomainServerPathResponse = 10,
|
MicrophoneAudioNoEcho = 9,
|
||||||
DomainServerAddedNode = 11,
|
MicrophoneAudioWithEcho = 10,
|
||||||
DomainServerConnectionToken = 12,
|
BulkAvatarData = 11,
|
||||||
DomainSettingsRequest = 13,
|
SilentAudioFrame = 12,
|
||||||
DomainSettings = 14,
|
DomainListRequest = 13,
|
||||||
|
RequestAssignment = 14,
|
||||||
|
CreateAssignment = 15,
|
||||||
|
DomainConnectionDenied = 16,
|
||||||
|
MuteEnvironment = 17,
|
||||||
|
AudioStreamStats = 18,
|
||||||
|
DomainServerPathQuery = 19,
|
||||||
|
DomainServerPathResponse = 20,
|
||||||
|
DomainServerAddedNode = 21,
|
||||||
|
ICEServerPeerInformation = 22,
|
||||||
|
ICEServerQuery = 23,
|
||||||
|
OctreeStats = 24,
|
||||||
|
SetAvatarTraits = 25,
|
||||||
|
InjectorGainSet = 26,
|
||||||
|
AssignmentClientStatus = 27,
|
||||||
|
NoisyMute = 28,
|
||||||
|
AvatarIdentity = 29,
|
||||||
|
NodeIgnoreRequest = 30,
|
||||||
|
DomainConnectRequest = 31,
|
||||||
// ... many more packet types
|
// ... many more packet types
|
||||||
EntityAdd = 0x41,
|
EntityAdd = 0x41,
|
||||||
EntityEdit = 0x42,
|
EntityEdit = 0x42,
|
||||||
@@ -35,6 +53,14 @@ enum class PacketType : uint8_t {
|
|||||||
EntityData = 0x45,
|
EntityData = 0x45,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Packet version constants (from Overte source)
|
||||||
|
namespace PacketVersions {
|
||||||
|
constexpr PacketVersion DomainConnectRequest_SocketTypes = 27; // NoHostname(17) + 10
|
||||||
|
constexpr PacketVersion DomainListRequest_SocketTypes = 23; // PreSocketTypes(22) + 1
|
||||||
|
constexpr PacketVersion DomainList_SocketTypes = 25; // PrePermissionsGrid(18) + 7
|
||||||
|
constexpr PacketVersion Ping_IncludeConnectionID = 18;
|
||||||
|
}
|
||||||
|
|
||||||
using PacketVersion = uint8_t;
|
using PacketVersion = uint8_t;
|
||||||
using LocalID = uint16_t;
|
using LocalID = uint16_t;
|
||||||
using SequenceNumber = uint32_t;
|
using SequenceNumber = uint32_t;
|
||||||
|
|||||||
Reference in New Issue
Block a user