Network: Handle join request in Room
This commit is contained in:
parent
7d9b7394dd
commit
2af9a7146d
2 changed files with 205 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include "common/common_types.h"
|
||||
|
@ -18,6 +19,11 @@ struct RoomInformation {
|
|||
u32 member_slots; ///< Maximum number of members in this room
|
||||
};
|
||||
|
||||
using MacAddress = std::array<uint8_t, 6>;
|
||||
/// A special MAC address that tells the room we're joining to assign us a MAC address
|
||||
/// automatically.
|
||||
const MacAddress NoPreferredMac = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
|
||||
|
||||
// The different types of messages that can be sent. The first byte of each packet defines the type
|
||||
typedef uint8_t MessageID;
|
||||
enum RoomMessageTypes {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue