diff options
author | B3n30 <benediktthomas@gmail.com> | 2017-07-08 15:24:47 +0200 |
---|---|---|
committer | B3n30 <benediktthomas@gmail.com> | 2017-07-16 21:28:47 +0200 |
commit | 589dc083a58425cadd8390ddd81854dcf054dd27 (patch) | |
tree | b665a2ff519ddbfb7d3f6a035f076342d69c2148 /src/network/room.h | |
parent | 5137a198f9d64a8f8afb16ef5976c706eeeb3fa3 (diff) |
Network: Threads for Room and RoomMember
Diffstat (limited to 'src/network/room.h')
-rw-r--r-- | src/network/room.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/network/room.h b/src/network/room.h index 70c64d5f1..0a6217c11 100644 --- a/src/network/room.h +++ b/src/network/room.h @@ -4,7 +4,6 @@ #pragma once -#include <atomic> #include <memory> #include <string> #include "common/common_types.h" @@ -19,6 +18,19 @@ struct RoomInformation { u32 member_slots; ///< Maximum number of members in this room }; +// The different types of messages that can be sent. The first byte of each packet defines the type +typedef uint8_t MessageID; +enum RoomMessageTypes { + IdJoinRequest = 1, + IdJoinSuccess, + IdRoomInformation, + IdSetGameName, + IdWifiPacket, + IdChatMessage, + IdNameCollision, + IdMacCollision +}; + /// This is what a server [person creating a server] would use. class Room final { public: |