diff options
author | B3n30 <benediktthomas@gmail.com> | 2017-07-09 15:06:02 +0200 |
---|---|---|
committer | B3n30 <benediktthomas@gmail.com> | 2017-07-16 21:29:57 +0200 |
commit | 859be35d54fda177a237e0c24bc1eaca76f1936d (patch) | |
tree | 87d277c722f269a1b8ca2186ec1e3ddbe8e4397a /src/network/room.h | |
parent | 42e57c121896818f9fbde5ddd9b7dbb5b2a267b1 (diff) |
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 { u32 member_slots; ///< Maximum number of members in this room }; -using MacAddress = std::array<uint8_t, 6>; +using MacAddress = std::array<u8, 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}; +// 802.11 broadcast MAC address +constexpr MacAddress BroadcastMac = {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; +using MessageID = u8; enum RoomMessageTypes { IdJoinRequest = 1, IdJoinSuccess, |