diff options
Diffstat (limited to 'src/network/room.h')
| -rw-r--r-- | src/network/room.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/network/room.h b/src/network/room.h index 6f7e3b5b5..c2a4b1a70 100644 --- a/src/network/room.h +++ b/src/network/room.h | |||
| @@ -9,12 +9,12 @@ | |||
| 9 | #include <vector> | 9 | #include <vector> |
| 10 | #include "common/announce_multiplayer_room.h" | 10 | #include "common/announce_multiplayer_room.h" |
| 11 | #include "common/common_types.h" | 11 | #include "common/common_types.h" |
| 12 | #include "common/socket_types.h" | ||
| 12 | #include "network/verify_user.h" | 13 | #include "network/verify_user.h" |
| 13 | 14 | ||
| 14 | namespace Network { | 15 | namespace Network { |
| 15 | 16 | ||
| 16 | using AnnounceMultiplayerRoom::GameInfo; | 17 | using AnnounceMultiplayerRoom::GameInfo; |
| 17 | using AnnounceMultiplayerRoom::MacAddress; | ||
| 18 | using AnnounceMultiplayerRoom::Member; | 18 | using AnnounceMultiplayerRoom::Member; |
| 19 | using AnnounceMultiplayerRoom::RoomInformation; | 19 | using AnnounceMultiplayerRoom::RoomInformation; |
| 20 | 20 | ||
| @@ -29,12 +29,9 @@ static constexpr u32 MaxConcurrentConnections = 254; | |||
| 29 | 29 | ||
| 30 | constexpr std::size_t NumChannels = 1; // Number of channels used for the connection | 30 | constexpr std::size_t NumChannels = 1; // Number of channels used for the connection |
| 31 | 31 | ||
| 32 | /// A special MAC address that tells the room we're joining to assign us a MAC address | 32 | /// A special IP address that tells the room we're joining to assign us a IP address |
| 33 | /// automatically. | 33 | /// automatically. |
| 34 | constexpr MacAddress NoPreferredMac = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; | 34 | constexpr IPv4Address NoPreferredIP = {0xFF, 0xFF, 0xFF, 0xFF}; |
| 35 | |||
| 36 | // 802.11 broadcast MAC address | ||
| 37 | constexpr MacAddress BroadcastMac = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; | ||
| 38 | 35 | ||
| 39 | // The different types of messages that can be sent. The first byte of each packet defines the type | 36 | // The different types of messages that can be sent. The first byte of each packet defines the type |
| 40 | enum RoomMessageTypes : u8 { | 37 | enum RoomMessageTypes : u8 { |
| @@ -42,15 +39,14 @@ enum RoomMessageTypes : u8 { | |||
| 42 | IdJoinSuccess, | 39 | IdJoinSuccess, |
| 43 | IdRoomInformation, | 40 | IdRoomInformation, |
| 44 | IdSetGameInfo, | 41 | IdSetGameInfo, |
| 45 | IdWifiPacket, | 42 | IdProxyPacket, |
| 46 | IdChatMessage, | 43 | IdChatMessage, |
| 47 | IdNameCollision, | 44 | IdNameCollision, |
| 48 | IdMacCollision, | 45 | IdIpCollision, |
| 49 | IdVersionMismatch, | 46 | IdVersionMismatch, |
| 50 | IdWrongPassword, | 47 | IdWrongPassword, |
| 51 | IdCloseRoom, | 48 | IdCloseRoom, |
| 52 | IdRoomIsFull, | 49 | IdRoomIsFull, |
| 53 | IdConsoleIdCollision, | ||
| 54 | IdStatusMessage, | 50 | IdStatusMessage, |
| 55 | IdHostKicked, | 51 | IdHostKicked, |
| 56 | IdHostBanned, | 52 | IdHostBanned, |