diff options
| author | 2017-07-09 15:06:02 +0200 | |
|---|---|---|
| committer | 2017-07-16 21:29:57 +0200 | |
| commit | 859be35d54fda177a237e0c24bc1eaca76f1936d (patch) | |
| tree | 87d277c722f269a1b8ca2186ec1e3ddbe8e4397a /src/network/room.h | |
| parent | Network: Enable sending and receiving chat messages (diff) | |
| download | yuzu-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.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, |