summaryrefslogtreecommitdiff
path: root/src/network/room.h
diff options
context:
space:
mode:
authorGravatar B3n302017-07-09 15:06:02 +0200
committerGravatar B3n302017-07-16 21:29:57 +0200
commit859be35d54fda177a237e0c24bc1eaca76f1936d (patch)
tree87d277c722f269a1b8ca2186ec1e3ddbe8e4397a /src/network/room.h
parentNetwork: Enable sending and receiving chat messages (diff)
downloadyuzu-859be35d54fda177a237e0c24bc1eaca76f1936d.tar.gz
yuzu-859be35d54fda177a237e0c24bc1eaca76f1936d.tar.xz
yuzu-859be35d54fda177a237e0c24bc1eaca76f1936d.zip
Network: Send the game title
Diffstat (limited to 'src/network/room.h')
-rw-r--r--src/network/room.h7
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
22using MacAddress = std::array<uint8_t, 6>; 22using 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.
25const MacAddress NoPreferredMac = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; 25const MacAddress NoPreferredMac = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
26 26
27// 802.11 broadcast MAC address
28constexpr 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
28typedef uint8_t MessageID; 31using MessageID = u8;
29enum RoomMessageTypes { 32enum RoomMessageTypes {
30 IdJoinRequest = 1, 33 IdJoinRequest = 1,
31 IdJoinSuccess, 34 IdJoinSuccess,