diff options
Diffstat (limited to 'src/network/room.h')
| -rw-r--r-- | src/network/room.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/network/room.h b/src/network/room.h index ca663058f..82e3dc62c 100644 --- a/src/network/room.h +++ b/src/network/room.h | |||
| @@ -19,13 +19,16 @@ struct RoomInformation { | |||
| 19 | u32 member_slots; ///< Maximum number of members in this room | 19 | u32 member_slots; ///< Maximum number of members in this room |
| 20 | }; | 20 | }; |
| 21 | 21 | ||
| 22 | using MacAddress = std::array<uint8_t, 6>; | 22 | using MacAddress = std::array<u8, 6>; |
| 23 | /// A special MAC address that tells the room we're joining to assign us a MAC address | 23 | /// A special MAC address that tells the room we're joining to assign us a MAC address |
| 24 | /// automatically. | 24 | /// automatically. |
| 25 | const MacAddress NoPreferredMac = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; | 25 | const MacAddress NoPreferredMac = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; |
| 26 | 26 | ||
| 27 | // 802.11 broadcast MAC address | ||
| 28 | constexpr MacAddress BroadcastMac = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; | ||
| 29 | |||
| 27 | // The different types of messages that can be sent. The first byte of each packet defines the type | 30 | // The different types of messages that can be sent. The first byte of each packet defines the type |
| 28 | typedef uint8_t MessageID; | 31 | using MessageID = u8; |
| 29 | enum RoomMessageTypes { | 32 | enum RoomMessageTypes { |
| 30 | IdJoinRequest = 1, | 33 | IdJoinRequest = 1, |
| 31 | IdJoinSuccess, | 34 | IdJoinSuccess, |