summaryrefslogtreecommitdiffstats
path: root/src/network/room.h
diff options
context:
space:
mode:
authorB3n30 <benediktthomas@gmail.com>2017-07-08 16:47:24 +0200
committerB3n30 <benediktthomas@gmail.com>2017-07-16 21:29:02 +0200
commit2af9a7146d17e89840c2c9c4f9134c992d27361c (patch)
treef52f855e81dcf75a1b46e6b6189f0e5f5c095989 /src/network/room.h
parentNetwork: Added Packet class for serialization (diff)
downloadyuzu-2af9a7146d17e89840c2c9c4f9134c992d27361c.tar
yuzu-2af9a7146d17e89840c2c9c4f9134c992d27361c.tar.gz
yuzu-2af9a7146d17e89840c2c9c4f9134c992d27361c.tar.bz2
yuzu-2af9a7146d17e89840c2c9c4f9134c992d27361c.tar.lz
yuzu-2af9a7146d17e89840c2c9c4f9134c992d27361c.tar.xz
yuzu-2af9a7146d17e89840c2c9c4f9134c992d27361c.tar.zst
yuzu-2af9a7146d17e89840c2c9c4f9134c992d27361c.zip
Diffstat (limited to 'src/network/room.h')
-rw-r--r--src/network/room.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/room.h b/src/network/room.h
index 0a6217c11..ca663058f 100644
--- a/src/network/room.h
+++ b/src/network/room.h
@@ -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 {